Merged in feat/fix-translations (pull request #1244)

Feat: Fix translations for localize

* fix: POI translations

* fix: update translations


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-02-06 12:14:40 +00:00
parent 87820a6f2d
commit 3690b0a29a
11 changed files with 123 additions and 51 deletions

View File

@@ -9,6 +9,7 @@ import { getLang } from "@/i18n/serverContext"
import {
type Facilities,
type FacilityCard,
FacilityCardButtonText,
type FacilityCardType,
FacilityCardTypeEnum,
type FacilityGrid,
@@ -31,7 +32,7 @@ export function isFacilityImage(card: FacilityCardType): card is FacilityImage {
function setCardProps(
theme: CardProps["theme"],
buttonText: string,
buttonText: (typeof FacilityCardButtonText)[keyof typeof FacilityCardButtonText],
href: string,
heading: string,
scriptedTopTitle?: string
@@ -87,7 +88,7 @@ export function setFacilityCardGrids(
const wellnessTitle = getWellnessHeading(healthFacilities)
card = setCardProps(
"one",
"Read more about wellness & exercise",
FacilityCardButtonText.WELLNESS,
wellnessAndExercise[lang],
facility.headingText,
wellnessTitle
@@ -98,7 +99,7 @@ export function setFacilityCardGrids(
case FacilityCardTypeEnum.conference:
card = setCardProps(
"primaryDim",
"About meetings & conferences",
FacilityCardButtonText.MEETINGS,
meetingsAndConferences[lang],
facility.headingText,
"Events that make an impression"
@@ -110,7 +111,7 @@ export function setFacilityCardGrids(
const restaurantTitle = getRestaurantHeading(amenities)
card = setCardProps(
"primaryDark",
"Read more & book a table",
FacilityCardButtonText.RESTAURANT,
restaurantAndBar[lang],
facility.headingText,
restaurantTitle