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

@@ -88,7 +88,13 @@ export default function StandaloneHotelCardDialog({
</Caption>
{publicPrice && (
<Subtitle type="two">
{publicPrice} {currency}
{intl.formatMessage(
{ id: "{price} {currency}" },
{
price: publicPrice,
currency,
}
)}
<Body asChild>
<span>/{intl.formatMessage({ id: "night" })}</span>
</Body>
@@ -100,7 +106,13 @@ export default function StandaloneHotelCardDialog({
color="red"
className={styles.memberPrice}
>
{memberPrice} {currency}
{intl.formatMessage(
{ id: "{price} {currency}" },
{
price: memberPrice,
currency,
}
)}
<Body asChild color="red">
<span>/{intl.formatMessage({ id: "night" })}</span>
</Body>