fix(i18n): prepare for Lokalise

This commit is contained in:
Michael Zetterberg
2025-01-03 14:54:46 +01:00
parent cbc17e2c5b
commit d2ce9c0d7c
120 changed files with 1703 additions and 1042 deletions

View File

@@ -1,4 +1,5 @@
"use client"
import { useParams } from "next/dist/client/components/navigation"
import { memo, useCallback } from "react"
import { useIntl } from "react-intl"
@@ -64,6 +65,8 @@ function HotelCard({
state,
})
const addressStr = `${hotelData.address.streetAddress}, ${hotelData.address.city}`
return (
<article
className={classNames}
@@ -94,9 +97,7 @@ function HotelCard({
</Subtitle>
<div className={styles.addressContainer}>
<address className={styles.address}>
<Caption color="uiTextPlaceholder">
{hotelData.address.streetAddress}, {hotelData.address.city}
</Caption>
<Caption color="uiTextPlaceholder">{addressStr}</Caption>
</address>
<address className={styles.addressMobile}>
<Caption color="burgundy" type="underline" asChild>
@@ -112,7 +113,7 @@ function HotelCard({
color="burgundy"
size="small"
>
{hotelData.address.streetAddress}, {hotelData.address.city}
{addressStr}
</Link>
</Caption>
</address>
@@ -121,7 +122,7 @@ function HotelCard({
</div>
<Caption color="uiTextPlaceholder">
{intl.formatMessage(
{ id: "Distance in km to city centre" },
{ id: "{number} km to city centre" },
{
number: getSingleDecimal(
hotelData.location.distanceToCentre / 1000