chore(SW-288): update Finnish translations + date format
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
"requiredNights": 0,
|
||||
"benefits": [
|
||||
{
|
||||
"title": "Ansaintakerroin 25 %"
|
||||
"title": "Ansaintakerroin +25 %"
|
||||
},
|
||||
{
|
||||
"title": "Aikainen sisäänkirjautuminen – 1 tunti lisäaikaa varaustilanteen mukaan"
|
||||
|
||||
@@ -75,7 +75,7 @@ function LevelCard({ formatMessage, lang, level }: LevelCardProps) {
|
||||
notFound()
|
||||
}
|
||||
}
|
||||
const pointsString = `${level.requiredPoints.toLocaleString(lang)} ${formatMessage({ id: "Points" })} `
|
||||
const pointsString = `${level.requiredPoints.toLocaleString(lang)} ${formatMessage({ id: "points" })} `
|
||||
|
||||
return (
|
||||
<article className={styles.card}>
|
||||
|
||||
@@ -307,7 +307,7 @@
|
||||
"level": 5,
|
||||
"name": "Loyal Friend",
|
||||
"requirement": "100 000p",
|
||||
"description": "Du har været hos os på mange ophold, så derfor vil vi gerne give dig nogle af vores bedste bonusser.",
|
||||
"description": "Du har været hos os på mange ophold, så derfor vil vi gerne give dig nogle af vores bedste fordele.",
|
||||
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg",
|
||||
"benefits": [
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import { getMembershipLevelObject } from "@/utils/membershipLevel"
|
||||
|
||||
import styles from "./next.module.css"
|
||||
|
||||
import { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"
|
||||
import type { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"
|
||||
|
||||
export default async function NextLevelBenefitsBlock({
|
||||
title,
|
||||
@@ -49,7 +49,7 @@ export default async function NextLevelBenefitsBlock({
|
||||
</Chip>
|
||||
<div className={styles.textContainer}>
|
||||
<Body color="peach50" textAlign="center">
|
||||
{formatMessage({ id: "As our" })} {nextLevel.name}
|
||||
{formatMessage({ id: "As our" }, { level: nextLevel.name })}
|
||||
</Body>{" "}
|
||||
<Title
|
||||
level="h4"
|
||||
|
||||
@@ -3,6 +3,7 @@ import { dt } from "@/lib/dt"
|
||||
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import { getMembership } from "@/utils/user"
|
||||
|
||||
import type { UserProps } from "@/types/components/myPages/user"
|
||||
@@ -10,7 +11,7 @@ import type { UserProps } from "@/types/components/myPages/user"
|
||||
export default async function ExpiringPoints({ user }: UserProps) {
|
||||
const { formatMessage } = await getIntl()
|
||||
const membership = getMembership(user.memberships)
|
||||
// TODO - add correct points when available from API
|
||||
|
||||
if (!membership || !membership.pointsToExpire) {
|
||||
// TODO: handle this case?
|
||||
return null
|
||||
@@ -19,12 +20,19 @@ export default async function ExpiringPoints({ user }: UserProps) {
|
||||
// sv hardcoded to force space on thousands
|
||||
const formatter = new Intl.NumberFormat(Lang.sv)
|
||||
const d = dt(membership.pointsExpiryDate)
|
||||
|
||||
const dateFormat = getLang() == Lang.fi ? "DD.MM.YYYY" : "YYYY-MM-DD"
|
||||
|
||||
return (
|
||||
<section>
|
||||
<Body color="white" textTransform="bold" textAlign="center">
|
||||
{formatter.format(membership.pointsToExpire)}{" "}
|
||||
{formatMessage({ id: "spendable points expiring by" })}{" "}
|
||||
{d.format("YYYY-MM-DD")}
|
||||
{formatMessage(
|
||||
{ id: "spendable points expiring by" },
|
||||
{
|
||||
points: formatter.format(membership.pointsToExpire),
|
||||
date: d.format(dateFormat),
|
||||
}
|
||||
)}
|
||||
</Body>
|
||||
</section>
|
||||
)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"An error occurred when trying to update profile.": "Der opstod en fejl under forsøg på at opdatere profilen.",
|
||||
"Arrival date": "Ankomstdato",
|
||||
"as of today": "fra idag",
|
||||
"As our": "Som vores",
|
||||
"As our": "Som vores {level}",
|
||||
"As our Close Friend": "Som vores nære ven",
|
||||
"At the hotel": "På hotellet",
|
||||
"Book": "Book",
|
||||
@@ -105,12 +105,13 @@
|
||||
"Phone number": "Telefonnummer",
|
||||
"Please enter a valid phone number": "Indtast venligst et gyldigt telefonnummer",
|
||||
"Points": "Point",
|
||||
"points": "Point",
|
||||
"Points being calculated": "Point udregnes",
|
||||
"Points earned prior to May 1, 2021": "Point optjent inden 1. maj 2021",
|
||||
"Points may take up to 10 days to be displayed.": "Det kan tage op til 10 dage at få vist point.",
|
||||
"Points needed to level up": "Point nødvendige for at stige i niveau",
|
||||
"Points needed to stay on level": "Point nødvendige for at holde sig på niveau",
|
||||
"spendable points expiring by": "Brugbare point udløber den",
|
||||
"spendable points expiring by": "{points} Brugbare point udløber den {date}",
|
||||
"Previous victories": "Tidligere sejre",
|
||||
"Read more": "Læs mere",
|
||||
"Read more about the hotel": "Læs mere om hotellet",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"An error occurred when trying to update profile.": "Beim Versuch, das Profil zu aktualisieren, ist ein Fehler aufgetreten.",
|
||||
"Arrival date": "Ankunftsdatum",
|
||||
"as of today": "Stand heute",
|
||||
"As our": "Als unser",
|
||||
"As our": "Als unser {level}",
|
||||
"As our Close Friend": "Als unser enger Freund",
|
||||
"At the hotel": "Im Hotel",
|
||||
"Book": "Buchen",
|
||||
@@ -102,12 +102,13 @@
|
||||
"Phone number": "Telefonnummer",
|
||||
"Please enter a valid phone number": "Bitte geben Sie eine gültige Telefonnummer ein",
|
||||
"Points": "Punkte",
|
||||
"points": "Punkte",
|
||||
"Points being calculated": "Punkte werden berechnet",
|
||||
"Points earned prior to May 1, 2021": "Zusammengeführte Punkte vor dem 1. Mai 2021",
|
||||
"Points may take up to 10 days to be displayed.": "Es kann bis zu 10 Tage dauern, bis Punkte angezeigt werden.",
|
||||
"Points needed to level up": "Punkte, die zum Levelaufstieg benötigt werden",
|
||||
"Points needed to stay on level": "Erforderliche Punkte, um auf diesem Level zu bleiben",
|
||||
"spendable points expiring by": "Einlösbare punkte verfallen bis zum",
|
||||
"spendable points expiring by": "{points} Einlösbare punkte verfallen bis zum {date}",
|
||||
"Previous victories": "Bisherige Siege",
|
||||
"Read more": "Mehr lesen",
|
||||
"Read more about the hotel": "Lesen Sie mehr über das Hotel",
|
||||
@@ -181,4 +182,4 @@
|
||||
"Use bonus cheque": "Bonusscheck nutzen",
|
||||
"Book reward night": "Bonusnacht buchen",
|
||||
"Find hotels": "Hotels finden"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"An error occurred when trying to update profile.": "An error occurred when trying to update profile.",
|
||||
"Arrival date": "Arrival date",
|
||||
"as of today": "as of today",
|
||||
"As our": "As our",
|
||||
"As our": "As our {level}",
|
||||
"As our Close Friend": "As our Close Friend",
|
||||
"At the hotel": "At the hotel",
|
||||
"Book": "Book",
|
||||
@@ -110,12 +110,13 @@
|
||||
"Phone number": "Phone number",
|
||||
"Please enter a valid phone number": "Please enter a valid phone number",
|
||||
"Points": "Points",
|
||||
"points": "Points",
|
||||
"Points being calculated": "Points being calculated",
|
||||
"Points earned prior to May 1, 2021": "Points earned prior to May 1, 2021",
|
||||
"Points may take up to 10 days to be displayed.": "Points may take up to 10 days to be displayed.",
|
||||
"Points needed to level up": "Points needed to level up",
|
||||
"Points needed to stay on level": "Points needed to stay on level",
|
||||
"spendable points expiring by": "spendable points expiring by",
|
||||
"spendable points expiring by": "{points} spendable points expiring by {date}",
|
||||
"Previous victories": "Previous victories",
|
||||
"Read more": "Read more",
|
||||
"Read more about the hotel": "Read more about the hotel",
|
||||
@@ -193,4 +194,4 @@
|
||||
"Use bonus cheque": "Use bonus cheque",
|
||||
"Book reward night": "Book reward night",
|
||||
"Find hotels": "Find hotels"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"An error occurred when trying to update profile.": "Profiilia päivitettäessä tapahtui virhe.",
|
||||
"Arrival date": "Saapumispäivä",
|
||||
"as of today": "tänään",
|
||||
"As our": "Kuin meidän",
|
||||
"As our": "{level}-etu",
|
||||
"As our Close Friend": "Läheisenä ystävänämme",
|
||||
"At the hotel": "Hotellissa",
|
||||
"Book": "Varaa",
|
||||
@@ -70,7 +70,7 @@
|
||||
"Join Scandic Friends": "Liity jäseneksi",
|
||||
"Language": "Kieli",
|
||||
"Level": "Level",
|
||||
"Level up to unlock": "Nosta taso avataksesi lukituksen",
|
||||
"Level up to unlock": "Nouse seuraavalle tasolle ja avaat seuraavan edun",
|
||||
"Log in": "Kirjaudu sisään",
|
||||
"Log in here": "Kirjaudu sisään",
|
||||
"Log out": "Kirjaudu ulos",
|
||||
@@ -105,12 +105,13 @@
|
||||
"Phone number": "Puhelinnumero",
|
||||
"Please enter a valid phone number": "Ole hyvä ja näppäile voimassaoleva puhelinnumero",
|
||||
"Points": "Pisteet",
|
||||
"points": "pistettä",
|
||||
"Points being calculated": "Pisteitä lasketaan",
|
||||
"Points earned prior to May 1, 2021": "Pisteet, jotka ansaittu ennen 1.5.2021",
|
||||
"Points may take up to 10 days to be displayed.": "Pisteiden näyttäminen voi kestää jopa 10 päivää.",
|
||||
"Points needed to level up": "Tarvitset vielä",
|
||||
"Points needed to stay on level": "Tällä tasolla pysymiseen tarvittavat pisteet",
|
||||
"spendable points expiring by": "Käytettävät pisteet vanhenevat viimeistään",
|
||||
"spendable points expiring by": "{points} pistettä vanhenee {date} mennessä",
|
||||
"Previous victories": "Edelliset voitot",
|
||||
"Read more": "Lue lisää",
|
||||
"Read more about the hotel": "Lue lisää hotellista",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"An error occurred when trying to update profile.": "Det oppstod en feil under forsøk på å oppdatere profilen.",
|
||||
"Arrival date": "Ankomstdato",
|
||||
"as of today": "per idag",
|
||||
"As our": "Som vår",
|
||||
"As our": "Som vår {level}",
|
||||
"As our Close Friend": "Som vår nære venn",
|
||||
"At the hotel": "På hotellet",
|
||||
"Book": "Bestill",
|
||||
@@ -105,12 +105,13 @@
|
||||
"Phone number": "Telefonnummer",
|
||||
"Please enter a valid phone number": "Vennligst oppgi et gyldig telefonnummer",
|
||||
"Points": "Poeng",
|
||||
"points": "Poeng",
|
||||
"Points being calculated": "Poeng beregnes",
|
||||
"Points earned prior to May 1, 2021": "Opptjente poeng før 1. mai 2021",
|
||||
"Points may take up to 10 days to be displayed.": "Det kan ta opptil 10 dager før poeng vises.",
|
||||
"Points needed to level up": "Poeng som trengs for å komme opp i nivå",
|
||||
"Points needed to stay on level": "Poeng som trengs for å holde seg på nivå",
|
||||
"spendable points expiring by": "Brukbare poeng utløper innen",
|
||||
"spendable points expiring by": "{points} Brukbare poeng utløper innen {date}",
|
||||
"Previous victories": "Tidligere seire",
|
||||
"Read more": "Les mer",
|
||||
"Read more about the hotel": "Les mer om hotellet",
|
||||
@@ -187,4 +188,4 @@
|
||||
"Use bonus cheque": "Bruk bonussjekk",
|
||||
"Book reward night": "Bestill belønningskveld",
|
||||
"Find hotels": "Finn hotell"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"An error occurred when trying to update profile.": "Ett fel uppstod när du försökte uppdatera profilen.",
|
||||
"Arrival date": "Ankomstdatum",
|
||||
"as of today": "från och med idag",
|
||||
"As our": "Som vår",
|
||||
"As our": "Som vår {level}",
|
||||
"As our Close Friend": "Som vår nära vän",
|
||||
"At the hotel": "På hotellet",
|
||||
"Book": "Boka",
|
||||
@@ -108,12 +108,13 @@
|
||||
"Phone number": "Telefonnummer",
|
||||
"Please enter a valid phone number": "Var vänlig och ange ett giltigt telefonnummer",
|
||||
"Points": "Poäng",
|
||||
"points": "poäng",
|
||||
"Points being calculated": "Poäng beräknas",
|
||||
"Points earned prior to May 1, 2021": "Intjänade poäng före den 1 maj 2021",
|
||||
"Points may take up to 10 days to be displayed.": "Det kan ta upp till 10 dagar innan poäng visas.",
|
||||
"Points needed to level up": "Poäng som behövs för att gå upp i nivå",
|
||||
"Points needed to stay on level": "Poäng som behövs för att hålla sig på nivå",
|
||||
"spendable points expiring by": "Spenderbara poäng förfaller till",
|
||||
"spendable points expiring by": "{points} Spenderbara poäng förfaller till {date}",
|
||||
"Previous victories": "Tidigare segrar",
|
||||
"Read more": "Läs mer",
|
||||
"Read more about the hotel": "Läs mer om hotellet",
|
||||
@@ -189,4 +190,4 @@
|
||||
"Use bonus cheque": "Use bonus cheque",
|
||||
"Book reward night": "Book reward night",
|
||||
"Find hotels": "Hitta hotell"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user