feat(SW-880): add translations

This commit is contained in:
Fredrik Thorsson
2024-11-14 22:38:53 +01:00
committed by Joakim Jäderberg
parent edc65af74e
commit c1152109c3
7 changed files with 18 additions and 1 deletions

View File

@@ -3,21 +3,26 @@ import { getIntl } from "@/i18n"
export async function getFacilityType(type: string) { export async function getFacilityType(type: string) {
const intl = await getIntl() const intl = await getIntl()
/* TODO: Get full list of types */
const outdoorPool = intl.formatMessage({ id: "Outdoor pool" }) const outdoorPool = intl.formatMessage({ id: "Outdoor pool" })
const indoorPool = intl.formatMessage({ id: "Indoor pool" })
const sauna = intl.formatMessage({ id: "Sauna" }) const sauna = intl.formatMessage({ id: "Sauna" })
const relax = intl.formatMessage({ id: "Relax" }) const relax = intl.formatMessage({ id: "Relax" })
const gym = intl.formatMessage({ id: "Gym" }) const gym = intl.formatMessage({ id: "Gym" })
const jacuzzi = intl.formatMessage({ id: "Jacuzzi" })
switch (type) { switch (type) {
case "OutdoorPool": case "OutdoorPool":
return outdoorPool return outdoorPool
case "IndoorPool":
return indoorPool
case "Sauna": case "Sauna":
return sauna return sauna
case "Relax": case "Relax":
return relax return relax
case "Gym": case "Gym":
return gym return gym
case "Jacuzzi":
return jacuzzi
default: default:
return type return type
} }

View File

@@ -160,7 +160,9 @@
"In crib": "i tremmeseng", "In crib": "i tremmeseng",
"In extra bed": "i ekstra seng", "In extra bed": "i ekstra seng",
"Included": "Inkluderet", "Included": "Inkluderet",
"Indoor pool": "Indendørs pool",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det er ikke muligt at administrere dine kommunikationspræferencer lige nu, prøv venligst igen senere eller kontakt support, hvis problemet fortsætter.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det er ikke muligt at administrere dine kommunikationspræferencer lige nu, prøv venligst igen senere eller kontakt support, hvis problemet fortsætter.",
"Jacuzzi": "Jacuzzi",
"Join Scandic Friends": "Tilmeld dig Scandic Friends", "Join Scandic Friends": "Tilmeld dig Scandic Friends",
"Join at no cost": "Tilmeld dig uden omkostninger", "Join at no cost": "Tilmeld dig uden omkostninger",
"Join or log in while booking for member pricing.": "Tilmeld dig eller log ind under booking for medlemspris.", "Join or log in while booking for member pricing.": "Tilmeld dig eller log ind under booking for medlemspris.",

View File

@@ -160,7 +160,9 @@
"In crib": "im Kinderbett", "In crib": "im Kinderbett",
"In extra bed": "im zusätzlichen Bett", "In extra bed": "im zusätzlichen Bett",
"Included": "Iinklusive", "Included": "Iinklusive",
"Indoor pool": "Innenpool",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Es ist derzeit nicht möglich, Ihre Kommunikationseinstellungen zu verwalten. Bitte versuchen Sie es später erneut oder wenden Sie sich an den Support, wenn das Problem weiterhin besteht.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Es ist derzeit nicht möglich, Ihre Kommunikationseinstellungen zu verwalten. Bitte versuchen Sie es später erneut oder wenden Sie sich an den Support, wenn das Problem weiterhin besteht.",
"Jacuzzi": "Whirlpool",
"Join Scandic Friends": "Treten Sie Scandic Friends bei", "Join Scandic Friends": "Treten Sie Scandic Friends bei",
"Join at no cost": "Kostenlos beitreten", "Join at no cost": "Kostenlos beitreten",
"Join or log in while booking for member pricing.": "Treten Sie Scandic Friends bei oder loggen Sie sich ein, um den Mitgliederpreis zu erhalten.", "Join or log in while booking for member pricing.": "Treten Sie Scandic Friends bei oder loggen Sie sich ein, um den Mitgliederpreis zu erhalten.",

View File

@@ -172,7 +172,9 @@
"In crib": "In crib", "In crib": "In crib",
"In extra bed": "In extra bed", "In extra bed": "In extra bed",
"Included": "Included", "Included": "Included",
"Indoor pool": "Indoor pool",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.",
"Jacuzzi": "Jacuzzi",
"Join Scandic Friends": "Join Scandic Friends", "Join Scandic Friends": "Join Scandic Friends",
"Join at no cost": "Join at no cost", "Join at no cost": "Join at no cost",
"Join or log in while booking for member pricing.": "Join or log in while booking for member pricing.", "Join or log in while booking for member pricing.": "Join or log in while booking for member pricing.",

View File

@@ -160,7 +160,9 @@
"In crib": "Pinnasängyssä", "In crib": "Pinnasängyssä",
"In extra bed": "Oma vuodepaikka", "In extra bed": "Oma vuodepaikka",
"Included": "Sisälly hintaan", "Included": "Sisälly hintaan",
"Indoor pool": "Sisäuima-allas",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Viestintäasetuksiasi ei voi hallita juuri nyt. Yritä myöhemmin uudelleen tai ota yhteyttä tukeen, jos ongelma jatkuu.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Viestintäasetuksiasi ei voi hallita juuri nyt. Yritä myöhemmin uudelleen tai ota yhteyttä tukeen, jos ongelma jatkuu.",
"Jacuzzi": "Poreallas",
"Join Scandic Friends": "Liity jäseneksi", "Join Scandic Friends": "Liity jäseneksi",
"Join at no cost": "Liity maksutta", "Join at no cost": "Liity maksutta",
"Join or log in while booking for member pricing.": "Liity tai kirjaudu sisään, kun varaat jäsenhinnan.", "Join or log in while booking for member pricing.": "Liity tai kirjaudu sisään, kun varaat jäsenhinnan.",

View File

@@ -158,7 +158,9 @@
"In crib": "i sprinkelseng", "In crib": "i sprinkelseng",
"In extra bed": "i ekstraseng", "In extra bed": "i ekstraseng",
"Included": "Inkludert", "Included": "Inkludert",
"Indoor pool": "Innendørs basseng",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det er ikke mulig å administrere kommunikasjonspreferansene dine akkurat nå, prøv igjen senere eller kontakt support hvis problemet vedvarer.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det er ikke mulig å administrere kommunikasjonspreferansene dine akkurat nå, prøv igjen senere eller kontakt support hvis problemet vedvarer.",
"Jacuzzi": "Boblebad",
"Join Scandic Friends": "Bli med i Scandic Friends", "Join Scandic Friends": "Bli med i Scandic Friends",
"Join at no cost": "Bli med uten kostnad", "Join at no cost": "Bli med uten kostnad",
"Join or log in while booking for member pricing.": "Bli med eller logg inn under bestilling for medlemspris.", "Join or log in while booking for member pricing.": "Bli med eller logg inn under bestilling for medlemspris.",

View File

@@ -158,7 +158,9 @@
"In crib": "I spjälsäng", "In crib": "I spjälsäng",
"In extra bed": "Egen sängplats", "In extra bed": "Egen sängplats",
"Included": "Inkluderad", "Included": "Inkluderad",
"Indoor pool": "Inomhuspool",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det gick inte att hantera dina kommunikationsinställningar just nu, försök igen senare eller kontakta supporten om problemet kvarstår.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det gick inte att hantera dina kommunikationsinställningar just nu, försök igen senare eller kontakta supporten om problemet kvarstår.",
"Jacuzzi": "Jacuzzi",
"Join Scandic Friends": "Gå med i Scandic Friends", "Join Scandic Friends": "Gå med i Scandic Friends",
"Join at no cost": "Gå med utan kostnad", "Join at no cost": "Gå med utan kostnad",
"Join or log in while booking for member pricing.": "Bli medlem eller logga in när du bokar för medlemspriser.", "Join or log in while booking for member pricing.": "Bli medlem eller logga in när du bokar för medlemspriser.",