feat: add benefit translations and remove unused JSON

This commit is contained in:
Arvid Norlin
2024-06-26 14:57:33 +02:00
parent 1bd65f77ac
commit 1c76725b4c
15 changed files with 178 additions and 1880 deletions

View File

@@ -1,5 +1,6 @@
import { Lock } from "react-feather"
import { MembershipLevelEnum } from "@/constants/membershipLevels"
import { serverClient } from "@/lib/trpc/server"
import SectionContainer from "@/components/Section/Container"
@@ -9,6 +10,7 @@ import Grids from "@/components/TempDesignSystem/Grids"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import { getIntl } from "@/i18n"
import { getMembershipLevelObject } from "@/utils/membershipLevel"
import styles from "./next.module.css"
@@ -17,16 +19,30 @@ import { AccountPageComponentProps } from "@/types/components/myPages/myPage/acc
export default async function NextLevelBenefitsBlock({
title,
subtitle,
lang,
link,
}: AccountPageComponentProps) {
const { nextLevel, perks } = await serverClient().user.benefits.nextLevel()
const { formatMessage } = await getIntl()
const user = await serverClient().user.get()
if (!user) {
return null
}
const nextLevel = getMembershipLevelObject(
user.memberships[0].membershipLevel as MembershipLevelEnum,
lang,
"nextLevel"
)
if (!nextLevel) {
// TODO: handle this case, when missing or when user is top level?
return null
}
// TODO: how to handle different count of unlockable benefits?
return (
<SectionContainer>
<Header title={title} subtitle={subtitle} link={link} />
<Grids.Stackable>
{perks.map((perk) => (
<article key={perk.id} className={styles.card}>
{nextLevel.benefits.map((benefit) => (
<article key={benefit.title} className={styles.card}>
<Chip>
<Lock height={16} />
{formatMessage({ id: "Level up to unlock" })}
@@ -38,10 +54,10 @@ export default async function NextLevelBenefitsBlock({
textAlign="center"
type="two"
>
{formatMessage({ id: "As our" })} {nextLevel}
{formatMessage({ id: "As our" })} {nextLevel.name}
</BiroScript>{" "}
<Subtitle color="pale" textAlign="center">
{perk.explanation}
{benefit.title}
</Subtitle>
</div>
</article>

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,19 +0,0 @@
import { Lang } from "@/constants/languages"
import DA from "./DA.json"
import DE from "./DE.json"
import EN from "./EN.json"
import FI from "./FI.json"
import NO from "./NO.json"
import SV from "./SV.json"
const levelsData = {
[Lang.en]: EN,
[Lang.sv]: SV,
[Lang.no]: NO,
[Lang.fi]: FI,
[Lang.da]: DA,
[Lang.de]: DE,
}
export default levelsData