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

@@ -19,10 +19,10 @@ export default function Voucher() {
const bonus = intl.formatMessage({ id: "Use bonus cheque" })
const reward = intl.formatMessage({ id: "Book reward night" })
const disabledBookingOptionsHeader = intl.formatMessage({
id: "Disabled booking options header",
id: "We're sorry",
})
const disabledBookingOptionsText = intl.formatMessage({
id: "Disabled booking options text",
id: "Codes, cheques and reward nights aren't available on the new website yet.",
})
return (

View File

@@ -41,7 +41,9 @@ export default function FormContent({
<Caption color="red" type="bold">
{nights > 0
? intl.formatMessage(
{ id: "booking.nights" },
{
id: "{totalNights, plural, one {# night} other {# nights}}",
},
{ totalNights: nights }
)
: intl.formatMessage({
@@ -102,7 +104,10 @@ export function BookingWidgetFormContentSkeleton() {
</div>
<div className={styles.when}>
<Caption color="red" type="bold">
{intl.formatMessage({ id: "booking.nights" }, { totalNights: 0 })}
{intl.formatMessage(
{ id: "{totalNights, plural, one {# night} other {# nights}}" },
{ totalNights: 0 }
)}
</Caption>
<SkeletonShimmer width={"100%"} />
</div>

View File

@@ -164,9 +164,11 @@ export default function SignupForm({ link, subtitle, title }: SignUpFormProps) {
{/* TODO: Update copy once ready */}
<Body>
{intl.formatMessage<React.ReactNode>(
{ id: "signupPage.terms" },
{
termsAndConditions: (str) => (
id: "By accepting the <termsAndConditionsLink>Terms and Conditions for Scandic Friends</termsAndConditionsLink> I understand that my personal data will be processed in accordance with <privacyPolicy>Scandic's Privacy Policy</privacyPolicy>.",
},
{
termsAndConditionsLink: (str) => (
<Link
variant="underscored"
color="peach80"