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

@@ -160,7 +160,7 @@ export default function PaymentClient({
(errorMessage: string) => {
toast.error(
intl.formatMessage({
id: "payment.error.failed",
id: "We had an issue processing your booking. Please try again. No charges have been made.",
})
)
const currentPaymentMethod = methods.getValues("paymentMethod")
@@ -312,10 +312,6 @@ export default function PaymentClient({
return <LoadingSpinner />
}
const guaranteeing = intl.formatMessage({ id: "guaranteeing" })
const paying = intl.formatMessage({ id: "paying" })
const paymentVerb = mustBeGuaranteed ? guaranteeing : paying
return (
<>
<FormProvider {...methods}>
@@ -387,11 +383,10 @@ export default function PaymentClient({
<Caption>
{intl.formatMessage<React.ReactNode>(
{
id: "booking.terms",
id: "By paying with any of the payment methods available, I accept the terms for this booking and the general <termsAndConditionsLink>Terms & Conditions</termsAndConditionsLink>, and understand that Scandic will process my personal data for this booking in accordance with <privacyPolicyLink>Scandic's Privacy policy</privacyPolicyLink>. I also accept that Scandic require a valid credit card during my visit in case anything is left unpaid.",
},
{
paymentVerb,
termsLink: (str) => (
termsAndConditionsLink: (str) => (
<Link
className={styles.link}
variant="underscored"
@@ -401,7 +396,7 @@ export default function PaymentClient({
{str}
</Link>
),
privacyLink: (str) => (
privacyPolicyLink: (str) => (
<Link
className={styles.link}
variant="underscored"