fix(i18n): prepare for Lokalise

This commit is contained in:
Michael Zetterberg
2025-01-13 16:38:18 +01:00
parent bcae63e3fc
commit dd71ff8fa7
21 changed files with 78 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ export default async function IntroSection({
const { streetAddress, city } = address
const { distanceToCentre } = location
const formattedDistanceText = intl.formatMessage(
{ id: "{number} km to city centre" },
{ id: "{number} km to city center" },
{ number: getSingleDecimal(distanceToCentre / 1000) }
)
const lang = getLang()

View File

@@ -54,7 +54,7 @@ export async function getSeatingText(roomSeating: number[]) {
if (biggestSeating === smallestSeating) {
seatingText = intl.formatMessage(
{ id: "{value} persons" },
{ number: biggestSeating }
{ value: biggestSeating }
)
} else if (smallestSeating != null && biggestSeating) {
{