diff --git a/apps/scandic-web/.eslintrc.json b/apps/scandic-web/.eslintrc.json
index eb0faf83f..70c092dc1 100644
--- a/apps/scandic-web/.eslintrc.json
+++ b/apps/scandic-web/.eslintrc.json
@@ -73,15 +73,15 @@
"ignoreRestSiblings": true
}
],
- "formatjs/enforce-description": ["warn", "anything"],
- "formatjs/enforce-default-message": ["error", "literal"],
+ // "formatjs/enforce-description": ["warn", "anything"],
+ // "formatjs/enforce-default-message": ["error", "literal"],
"formatjs/enforce-placeholders": ["error"],
"formatjs/enforce-plural-rules": ["error"],
"formatjs/no-literal-string-in-jsx": ["error"],
"formatjs/no-multiple-whitespaces": ["error"],
"formatjs/no-multiple-plurals": ["error"],
"formatjs/no-invalid-icu": ["error"],
- "formatjs/no-id": ["error"],
+ // "formatjs/no-id": ["error"],
"formatjs/no-complex-selectors": ["error"],
"formatjs/no-useless-message": ["error"],
"formatjs/prefer-pound-in-plural": ["error"]
diff --git a/apps/scandic-web/actions/editProfile.ts b/apps/scandic-web/actions/editProfile.ts
index b429ba161..d42d5f95b 100644
--- a/apps/scandic-web/actions/editProfile.ts
+++ b/apps/scandic-web/actions/editProfile.ts
@@ -61,7 +61,7 @@ export const editProfile = protectedServerActionProcedure
message: issue.message,
})),
message: intl.formatMessage({
- id: "An error occured when trying to update profile.",
+ defaultMessage: "An error occured when trying to update profile.",
}),
status: Status.error,
}
@@ -81,7 +81,7 @@ export const editProfile = protectedServerActionProcedure
data: input,
issues: [],
message: intl.formatMessage({
- id: "An error occured when trying to update profile.",
+ defaultMessage: "An error occured when trying to update profile.",
}),
status: Status.error,
}
@@ -137,7 +137,9 @@ export const editProfile = protectedServerActionProcedure
if (Object.keys(body).length === 0) {
return {
data: input,
- message: intl.formatMessage({ id: "Successfully updated profile!" }),
+ message: intl.formatMessage({
+ defaultMessage: "Successfully updated profile!",
+ }),
status: Status.success,
}
} else {
@@ -172,7 +174,7 @@ export const editProfile = protectedServerActionProcedure
data: input,
issues: [],
message: intl.formatMessage({
- id: "An error occured when trying to update profile.",
+ defaultMessage: "An error occured when trying to update profile.",
}),
status: Status.error,
}
@@ -208,7 +210,7 @@ export const editProfile = protectedServerActionProcedure
message: issue.message,
})),
message: intl.formatMessage({
- id: "An error occured when trying to update profile.",
+ defaultMessage: "An error occured when trying to update profile.",
}),
status: Status.error,
}
@@ -216,7 +218,9 @@ export const editProfile = protectedServerActionProcedure
return {
data: validatedData.data,
- message: intl.formatMessage({ id: "Successfully updated profile!" }),
+ message: intl.formatMessage({
+ defaultMessage: "Successfully updated profile!",
+ }),
status: Status.success,
}
})
diff --git a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/@breadcrumbs/[...path]/error.tsx b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/@breadcrumbs/[...path]/error.tsx
index a7d0f4789..61f2134c5 100644
--- a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/@breadcrumbs/[...path]/error.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/@breadcrumbs/[...path]/error.tsx
@@ -22,7 +22,9 @@ export default function Error({
{intl.formatMessage(
- { id: "Breadcrumbs failed for this page ({errorId})" },
+ {
+ defaultMessage: "Breadcrumbs failed for this page ({errorId})",
+ },
{
errorId: `${error.digest}@${Date.now()}`,
}
diff --git a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/error.tsx b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/error.tsx
index 3b0bbdbd4..3e2981d47 100644
--- a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/error.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/error.tsx
@@ -22,7 +22,9 @@ export default function Error({
{intl.formatMessage(
- { id: "Error loading this page ({errorId})" },
+ {
+ defaultMessage: "Error loading this page ({errorId})",
+ },
{
errorId: `${error.digest}@${Date.now()}`,
}
diff --git a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/page.tsx b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/page.tsx
index 513037d11..82ca57deb 100644
--- a/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/page.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/[...path]/page.tsx
@@ -37,7 +37,11 @@ export default async function MyPages({}: PageArgs<
{content?.length ? (
) : (
- {intl.formatMessage({ id: "No content published" })}
+
+ {intl.formatMessage({
+ defaultMessage: "No content published",
+ })}
+
)}
diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/destination_overview_page/[uid]/error.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/destination_overview_page/[uid]/error.tsx
index 357d9aec9..e1d49695c 100644
--- a/apps/scandic-web/app/[lang]/(live)/(public)/destination_overview_page/[uid]/error.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/(public)/destination_overview_page/[uid]/error.tsx
@@ -25,7 +25,9 @@ export default function Error({
{intl.formatMessage(
- { id: "An error occurred ({errorId})" },
+ {
+ defaultMessage: "An error occurred ({errorId})",
+ },
{
errorId: `${error.digest}@${Date.now()}`,
}
diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx
index f949f3de3..bb54b1c12 100644
--- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx
@@ -128,12 +128,17 @@ export default async function DetailsPage({
) {
}
return (
+ // eslint-disable-next-line formatjs/no-literal-string-in-jsx
diff --git a/apps/scandic-web/app/[lang]/(live)/error.tsx b/apps/scandic-web/app/[lang]/(live)/error.tsx
index aead8a274..cd593e9e2 100644
--- a/apps/scandic-web/app/[lang]/(live)/error.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/error.tsx
@@ -61,7 +61,9 @@ export default function Error({
return (
- {intl.formatMessage({ id: "Something went wrong!" })}
+ {intl.formatMessage({
+ defaultMessage: "Something went wrong!",
+ })}
{env.NEXT_PUBLIC_NODE_ENV === "development" && (
{error.stack || error.message}
)}
diff --git a/apps/scandic-web/app/[lang]/(live)/layout.tsx b/apps/scandic-web/app/[lang]/(live)/layout.tsx
index 1b54179f2..ebd7c7e0d 100644
--- a/apps/scandic-web/app/[lang]/(live)/layout.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/layout.tsx
@@ -52,6 +52,7 @@ export default async function RootLayout({
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
/>
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
diff --git a/apps/scandic-web/app/[lang]/(live)/middleware-error/[status]/page.tsx b/apps/scandic-web/app/[lang]/(live)/middleware-error/[status]/page.tsx
index a40165083..e48580a6a 100644
--- a/apps/scandic-web/app/[lang]/(live)/middleware-error/[status]/page.tsx
+++ b/apps/scandic-web/app/[lang]/(live)/middleware-error/[status]/page.tsx
@@ -6,8 +6,9 @@ export default async function MiddlewareError({
params,
}: LayoutArgs
) {
return (
+ // eslint-disable-next-line formatjs/no-literal-string-in-jsx
- Middleware error {params.lang}: {params.status}
+ Middleware error {params.lang} {params.status}
)
}
diff --git a/apps/scandic-web/app/[lang]/(live-current)/layout.tsx b/apps/scandic-web/app/[lang]/(live-current)/layout.tsx
index 3863c9aba..a289f3461 100644
--- a/apps/scandic-web/app/[lang]/(live-current)/layout.tsx
+++ b/apps/scandic-web/app/[lang]/(live-current)/layout.tsx
@@ -1,3 +1,5 @@
+/* eslint-disable formatjs/no-literal-string-in-jsx */
+
import "@scandic-hotels/design-system/fonts.css"
import "@/app/globals.css"
import "@/public/_static/css/design-system-current-deprecated.css"
diff --git a/apps/scandic-web/app/[lang]/(no-layout)/layout.tsx b/apps/scandic-web/app/[lang]/(no-layout)/layout.tsx
index d1adee9d2..23f601e8c 100644
--- a/apps/scandic-web/app/[lang]/(no-layout)/layout.tsx
+++ b/apps/scandic-web/app/[lang]/(no-layout)/layout.tsx
@@ -43,6 +43,7 @@ export default async function RootLayout({
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
/>
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/AlreadyLinkedError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/AlreadyLinkedError.tsx
index b3598acfc..f1b1cab2d 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/AlreadyLinkedError.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/AlreadyLinkedError.tsx
@@ -20,18 +20,25 @@ export function AlreadyLinkedError() {
- {intl.formatMessage({ id: "Accounts are already linked" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Accounts are already linked",
+ })}
+
{intl.formatMessage({
- id: "Looks like you’ve already linked your Scandic Friends and SAS EuroBonus accounts!",
+ defaultMessage:
+ "Looks like you’ve already linked your Scandic Friends and SAS EuroBonus accounts!",
})}
- {intl.formatMessage({ id: "View your linked accounts" })}
+ {intl.formatMessage({
+ defaultMessage: "View your linked accounts",
+ })}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx
index 300159074..5d9f3d3d0 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/DateOfBirthError.tsx
@@ -25,18 +25,25 @@ export function DateOfBirthError() {
size={64}
/>
- {intl.formatMessage({ id: "Date of birth not matching" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Date of birth not matching",
+ })}
+
{intl.formatMessage({
- id: "We couldn’t connect your accounts. Please contact us and we’ll help you resolve this.",
+ defaultMessage:
+ "We couldn’t connect your accounts. Please contact us and we’ll help you resolve this.",
})}
- {intl.formatMessage({ id: "View your details" })}
+ {intl.formatMessage({
+ defaultMessage: "View your details",
+ })}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/FailedAttemptsError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/FailedAttemptsError.tsx
index 298b4dedc..99a157fda 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/FailedAttemptsError.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/FailedAttemptsError.tsx
@@ -13,18 +13,22 @@ export function FailedAttemptsError() {
return (
{intl.formatMessage({
- id: "Please wait 1 hour before trying again.",
+ defaultMessage: "Please wait 1 hour before trying again.",
})}
- {intl.formatMessage({ id: "Send new code" })}
+ {intl.formatMessage({
+ defaultMessage: "Send new code",
+ })}
)
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/SASModal.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/SASModal.tsx
index a541cce83..3e4d73666 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/SASModal.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/SASModal.tsx
@@ -18,7 +18,11 @@ export function SASModalDivider() {
return (
- {intl.formatMessage({ id: "or" })}
+
+ {intl.formatMessage({
+ defaultMessage: "or",
+ })}
+
)
@@ -27,13 +31,17 @@ export function SASModalDivider() {
export function SASModalContactBlock() {
const intl = useIntl()
- const phone = intl.formatMessage({ id: "+46 8 517 517 00" })
+ const phone = intl.formatMessage({
+ defaultMessage: "+46 8 517 517 00",
+ })
return (
- {intl.formatMessage({ id: "Contact us" })}
+ {intl.formatMessage({
+ defaultMessage: "Contact us",
+ })}
{phone}
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
member@scandichotels.com
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx
index 0167bb17b..91ee95d62 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyCodesError.tsx
@@ -13,18 +13,22 @@ export function TooManyCodesError() {
return (
{intl.formatMessage({
- id: "Please wait 1 hour before trying again.",
+ defaultMessage: "Please wait 1 hour before trying again.",
})}
- {intl.formatMessage({ id: "Send new code" })}
+ {intl.formatMessage({
+ defaultMessage: "Send new code",
+ })}
)
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyFailedAttemptsError.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyFailedAttemptsError.tsx
index 30ad7eb1b..8b4947062 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyFailedAttemptsError.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/components/TooManyFailedAttemptsError.tsx
@@ -13,18 +13,22 @@ export function TooManyFailedAttemptsError() {
return (
{intl.formatMessage({
- id: "Please wait 1 hour before trying again.",
+ defaultMessage: "Please wait 1 hour before trying again.",
})}
- {intl.formatMessage({ id: "Send new code" })}
+ {intl.formatMessage({
+ defaultMessage: "Send new code",
+ })}
)
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error.tsx
index f238a53ba..bf1c9a7f2 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error.tsx
@@ -26,13 +26,13 @@ export default function Error({
return (
{intl.formatMessage({
- id: "Please try again later",
+ defaultMessage: "Please try again later",
})}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error/page.tsx
index cc6b7c10e..b3d41be9b 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error/page.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/error/page.tsx
@@ -37,13 +37,14 @@ export default async function Page({
return (
{intl.formatMessage({
- id: "We couldn’t connect your accounts. Please contact us and we’ll help you resolve this.",
+ defaultMessage:
+ "We couldn’t connect your accounts. Please contact us and we’ll help you resolve this.",
})}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/layout.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/layout.tsx
index eb5cb323d..7709ea884 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/layout.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/layout.tsx
@@ -29,10 +29,14 @@ export default async function SasXScandicLayout({
- {intl.formatMessage({ id: "Back to scandichotels.com" })}
+ {intl.formatMessage({
+ defaultMessage: "Back to scandichotels.com",
+ })}
- {intl.formatMessage({ id: "Back" })}
+ {intl.formatMessage({
+ defaultMessage: "Back",
+ })}
@@ -45,7 +49,13 @@ export default async function SasXScandicLayout({
async function MainMenuLogo() {
const intl = await getIntl()
- return
+ return (
+
+ )
}
function Logo({ alt }: { alt: string }) {
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx
index 231bed3a1..e8311574d 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx
@@ -61,7 +61,11 @@ export function LinkAccountForm({
src="/_static/img/partner/sas/sas-campaign-logo.png"
/>
- {intl.formatMessage({ id: "Link your accounts" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Link your accounts",
+ })}
+
@@ -70,19 +74,23 @@ export function LinkAccountForm({
{userDateOfBirth
? intl.formatMessage(
{
- id: "Birth date: {dateOfBirth, date, ::MMMM d yyyy}",
+ defaultMessage:
+ "Birth date: {dateOfBirth, date, ::MMMM d yyyy}",
},
{
dateOfBirth: new Date(userDateOfBirth),
}
)
- : intl.formatMessage({ id: "Birth date is missing" })}
+ : intl.formatMessage({
+ defaultMessage: "Birth date is missing",
+ })}
{intl.formatMessage({
- id: "We require your birth date in order to link your Scandic Friends account with your SAS EuroBonus account. Please check that it is correct.",
+ defaultMessage:
+ "We require your birth date in order to link your Scandic Friends account with your SAS EuroBonus account. Please check that it is correct.",
})}
@@ -93,7 +101,7 @@ export function LinkAccountForm({
variant="underscored"
>
{intl.formatMessage({
- id: "Edit your personal details",
+ defaultMessage: "Edit your personal details",
})}
@@ -106,7 +114,7 @@ export function LinkAccountForm({
required: {
value: true,
message: intl.formatMessage({
- id: "You must accept the terms and conditions",
+ defaultMessage: "You must accept the terms and conditions",
}),
},
disabled: !userDateOfBirth,
@@ -115,7 +123,7 @@ export function LinkAccountForm({
{intl.formatMessage({
- id: "I accept the terms and conditions",
+ defaultMessage: "I accept the terms and conditions",
})}
@@ -124,7 +132,8 @@ export function LinkAccountForm({
{intl.formatMessage(
{
- id: "By linking your accounts you accept the Terms & Conditions for Scandic Friends and SAS EuroBonus Account Linking .",
+ defaultMessage:
+ "By linking your accounts you accept the Terms & Conditions for Scandic Friends and SAS EuroBonus Account Linking .",
},
{
sasScandicTermsAndConditionsLink: (str) => (
@@ -150,7 +159,9 @@ export function LinkAccountForm({
type="submit"
disabled={isPending || disableSubmit}
>
- {intl.formatMessage({ id: "Link my accounts" })}
+ {intl.formatMessage({
+ defaultMessage: "Link my accounts",
+ })}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/success/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/success/page.tsx
index 0a181ba8d..5245b6119 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/success/page.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/success/page.tsx
@@ -26,20 +26,24 @@ export default async function SASxScandicLinkPage({
color="Icon/Feedback/Success"
/>
- {intl.formatMessage({ id: "Your accounts are linked" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Your accounts are linked",
+ })}
+
{intl.formatMessage({
- id: "We successfully connected your accounts!",
+ defaultMessage: "We successfully connected your accounts!",
})}
{intl.formatMessage({
- id: "Redirecting you to my pages.",
+ defaultMessage: "Redirecting you to my pages.",
})}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/login/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/login/page.tsx
index 441296e71..38ef8a82d 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/login/page.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/login/page.tsx
@@ -51,13 +51,16 @@ export default async function SASxScandicLoginPage({
const intentDescriptions: Record
= {
link: intl.formatMessage({
- id: "Log in to your SAS EuroBonus account to confirm account linking.",
+ defaultMessage:
+ "Log in to your SAS EuroBonus account to confirm account linking.",
}),
unlink: intl.formatMessage({
- id: "Log in to your SAS Eurobonus account to confirm account unlinking.",
+ defaultMessage:
+ "Log in to your SAS Eurobonus account to confirm account unlinking.",
}),
transfer: intl.formatMessage({
- id: "In order to transfer your points we will ask you to sign in to your SAS EuroBonus account.",
+ defaultMessage:
+ "In order to transfer your points we will ask you to sign in to your SAS EuroBonus account.",
}),
}
@@ -72,7 +75,11 @@ export default async function SASxScandicLoginPage({
style={{ marginTop: 16 }}
/>
- {intl.formatMessage({ id: "Redirecting you to SAS" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Redirecting you to SAS",
+ })}
+
@@ -82,7 +89,8 @@ export default async function SASxScandicLoginPage({
{intl.formatMessage(
{
- id: "If you are not redirected automatically, please click here .",
+ defaultMessage:
+ "If you are not redirected automatically, please click here .",
},
{
loginLink: (str) => (
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/OneTimePasswordForm.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/OneTimePasswordForm.tsx
index c2564b2b9..73c14cfe4 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/OneTimePasswordForm.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/OneTimePasswordForm.tsx
@@ -56,7 +56,9 @@ export default function OneTimePasswordForm({
if (requestOtp.isError) {
const cause = requestOtp.error?.data?.cause as RequestOtpError
- const title = intl.formatMessage({ id: "Error requesting OTP" })
+ const title = intl.formatMessage({
+ defaultMessage: "Error requesting OTP",
+ })
const body = getRequestErrorBody(intl, cause?.errorCode)
return (
@@ -125,11 +127,12 @@ export default function OneTimePasswordForm({
const errorMessages: Record = {
invalidCode: intl.formatMessage({
- id: "The code you've entered is incorrect.",
+ defaultMessage: "The code you've entered is incorrect.",
}),
expiredCode: intl.formatMessage(
{
- id: "This code has expired. Send new code. ",
+ defaultMessage:
+ "This code has expired. Send new code. ",
},
{
resendOtpLink: getResendOtpLink,
@@ -189,7 +192,8 @@ export default function OneTimePasswordForm({
{intl.formatMessage(
{
- id: "Didn't receive a code? Resend code ",
+ defaultMessage:
+ "Didn't receive a code? Resend code ",
},
{
resendOtpLink: getResendOtpLink,
@@ -226,11 +230,11 @@ const getRequestErrorBody = (
switch (errorCode) {
case "TOO_MANY_REQUESTS":
return intl.formatMessage({
- id: "Too many requests. Please try again later.",
+ defaultMessage: "Too many requests. Please try again later.",
})
default:
return intl.formatMessage({
- id: "An error occurred while requesting a new OTP",
+ defaultMessage: "An error occurred while requesting a new OTP",
})
}
}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/loading.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/loading.tsx
index ed61b81cd..92056cfc0 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/loading.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/loading.tsx
@@ -16,7 +16,7 @@ export default function Loading() {
{intl.formatMessage({
- id: "Hang tight...",
+ defaultMessage: "Hang tight...",
})}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/page.tsx
index 1d134bebb..c9cc5875c 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/page.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/otp/page.tsx
@@ -110,19 +110,22 @@ export default async function SASxScandicOneTimePasswordPage({
const intentDescriptions: Record = {
link: intl.formatMessage(
{
- id: "Please enter the code sent to in order to confirm your account linking.",
+ defaultMessage:
+ "Please enter the code sent to in order to confirm your account linking.",
},
{ maskedContactInfo }
),
unlink: intl.formatMessage(
{
- id: "Please enter the code sent to in order to unlink your accounts.",
+ defaultMessage:
+ "Please enter the code sent to in order to unlink your accounts.",
},
{ maskedContactInfo }
),
transfer: intl.formatMessage(
{
- id: "Please enter the code sent to in order to transfer your points.",
+ defaultMessage:
+ "Please enter the code sent to in order to transfer your points.",
},
{ maskedContactInfo }
),
@@ -130,10 +133,12 @@ export default async function SASxScandicOneTimePasswordPage({
return (
- {intl.formatMessage({ id: "Point transfer completed!" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Point transfer completed!",
+ })}
+
@@ -52,7 +56,7 @@ export default async function SASxScandicTransferSuccessPage({
>
{intl.formatMessage({
- id: "Go back to My Pages",
+ defaultMessage: "Go back to My Pages",
})}
@@ -80,20 +84,33 @@ async function TransactionCard({
return (
- {intl.formatMessage({ id: "Your transaction" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Your transaction",
+ })}
+
- {intl.formatMessage({ id: "Points added" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Points added",
+ })}
+
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
+ {transferredPoints}
- {intl.formatMessage({ id: "Your new total" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Your new total",
+ })}
+
}>
@@ -106,14 +123,15 @@ async function TransactionCard({
{intl.formatMessage({
- id: "You have enough points for a bonus night!",
+ defaultMessage: "You have enough points for a bonus night!",
})}
{intl.formatMessage({
- id: "Bonus Nights range from 10 000 - 80 000 points. Book your next stay with us today!",
+ defaultMessage:
+ "Bonus Nights range from 10 000 - 80 000 points. Book your next stay with us today!",
})}
@@ -128,7 +146,13 @@ async function TransactionCard({
>
{/* TODO correct link */}
- {intl.formatMessage({ id: "Book now" })}{" "}
+ {intl.formatMessage({
+ defaultMessage: "Book now",
+ })}
+ {
+ /* eslint-disable-next-line formatjs/no-literal-string-in-jsx */
+ " "
+ }
- ={" "}
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
+ {"= "}
{intl.formatMessage(
- { id: "{points, number} points" },
+ {
+ defaultMessage: "{points, number} points",
+ },
{
points,
}
diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/unlink/success/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/unlink/success/page.tsx
index 8c7060e55..d1cbc4521 100644
--- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/unlink/success/page.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/unlink/success/page.tsx
@@ -26,13 +26,17 @@ export default async function SASxScandicUnlinkSuccessPage({
color="Icon/Feedback/Success"
/>
- {intl.formatMessage({ id: "Your accounts are now unlinked" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Your accounts are now unlinked",
+ })}
+
{intl.formatMessage({
- id: "Redirecting you to My Pages.",
+ defaultMessage: "Redirecting you to My Pages.",
})}
diff --git a/apps/scandic-web/app/[lang]/(partner)/layout.tsx b/apps/scandic-web/app/[lang]/(partner)/layout.tsx
index 8cddbee62..f101ec1b4 100644
--- a/apps/scandic-web/app/[lang]/(partner)/layout.tsx
+++ b/apps/scandic-web/app/[lang]/(partner)/layout.tsx
@@ -47,6 +47,7 @@ export default async function RootLayout({
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
/>
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
diff --git a/apps/scandic-web/app/[lang]/webview/[contentType]/[uid]/page.tsx b/apps/scandic-web/app/[lang]/webview/[contentType]/[uid]/page.tsx
index b0f1e41ba..a6b341c2b 100644
--- a/apps/scandic-web/app/[lang]/webview/[contentType]/[uid]/page.tsx
+++ b/apps/scandic-web/app/[lang]/webview/[contentType]/[uid]/page.tsx
@@ -22,7 +22,13 @@ export default async function ContentTypePage({
if (!user) {
console.log(`[webview:page] unable to load user`)
- return
{intl.formatMessage({ id: "Error: No user could be loaded" })}
+ return (
+
+ {intl.formatMessage({
+ defaultMessage: "Error: No user could be loaded",
+ })}
+
+ )
}
if ("error" in user) {
@@ -36,11 +42,19 @@ export default async function ContentTypePage({
console.log(`[webview:page] user error, redirecting to: ${redirectURL}`)
redirect(redirectURL)
case "notfound":
- return
{intl.formatMessage({ id: "Error: user not found" })}
+ return (
+
+ {intl.formatMessage({
+ defaultMessage: "Error: user not found",
+ })}
+
+ )
case "unknown":
return (
- {intl.formatMessage({ id: "Unknown error occurred loading user" })}
+ {intl.formatMessage({
+ defaultMessage: "Unknown error occurred loading user",
+ })}
)
default:
diff --git a/apps/scandic-web/app/[lang]/webview/layout.tsx b/apps/scandic-web/app/[lang]/webview/layout.tsx
index 695c5d4a4..a408c00b6 100644
--- a/apps/scandic-web/app/[lang]/webview/layout.tsx
+++ b/apps/scandic-web/app/[lang]/webview/layout.tsx
@@ -38,6 +38,7 @@ export default async function RootLayout({
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
diff --git a/apps/scandic-web/app/global-error.tsx b/apps/scandic-web/app/global-error.tsx
index e317cfba4..7b569cd0d 100644
--- a/apps/scandic-web/app/global-error.tsx
+++ b/apps/scandic-web/app/global-error.tsx
@@ -23,7 +23,11 @@ export default function GlobalError({
-
{intl.formatMessage({ id: "Something went really wrong!" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Something went really wrong!",
+ })}
+
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/HowItWorks/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/HowItWorks/index.tsx
index 30d4df1b6..47884e0b4 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/HowItWorks/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/HowItWorks/index.tsx
@@ -12,7 +12,11 @@ export default async function HowItWorks({ dynamic_content }: HowItWorksProps) {
return (
- {intl.formatMessage({ id: "How it works" })}
+
+ {intl.formatMessage({
+ defaultMessage: "How it works",
+ })}
+
)
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/Filter/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/Filter/index.tsx
index 1bb085b2a..47f2b6fac 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/Filter/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/Filter/index.tsx
@@ -33,8 +33,12 @@ export default function Filter({
onFilterChange(JobylonFilterKey.country, value)}
/>
@@ -42,10 +46,10 @@ export default function Filter({
items={cityFilters}
defaultSelectedKey={""}
label={intl.formatMessage({
- id: "Location (shown in local language)",
+ defaultMessage: "Location (shown in local language)",
})}
aria-label={intl.formatMessage({
- id: "Location (shown in local language)",
+ defaultMessage: "Location (shown in local language)",
})}
name="city"
onSelect={(value) => onFilterChange(JobylonFilterKey.city, value)}
@@ -53,16 +57,24 @@ export default function Filter({
onFilterChange(JobylonFilterKey.department, value)}
/>
onFilterChange(JobylonFilterKey.category, value)}
/>
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/index.tsx
index 13ab40102..38ab0f384 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobList/index.tsx
@@ -31,19 +31,39 @@ export default function JobList({ allJobs }: JobListProps) {
}
const countryFilters = [
- { label: intl.formatMessage({ id: "All countries" }), value: "" },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "All countries",
+ }),
+ value: "",
+ },
...state.countryFilters,
]
const cityFilters = [
- { label: intl.formatMessage({ id: "All locations" }), value: "" },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "All locations",
+ }),
+ value: "",
+ },
...state.cityFilters,
]
const departmentFilters = [
- { label: intl.formatMessage({ id: "All hotels and offices" }), value: "" },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "All hotels and offices",
+ }),
+ value: "",
+ },
...state.departmentFilters,
]
const categoryFilters = [
- { label: intl.formatMessage({ id: "All categories" }), value: "" },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "All categories",
+ }),
+ value: "",
+ },
...state.categoryFilters,
]
@@ -59,7 +79,7 @@ export default function JobList({ allJobs }: JobListProps) {
{intl.formatMessage(
{
- id: "{count, plural, one {# Result} other {# Results}}",
+ defaultMessage: "{count, plural, one {# Result} other {# Results}}",
},
{ count: state.jobs.length }
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx
index d96a1cb58..5e9a2daf7 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/JobylonFeed/JobylonCard/index.tsx
@@ -24,10 +24,14 @@ export default function JobylonCard({ job }: JobylonCardProps) {
const lang = useLang()
const deadlineText = job.toDate
? intl.formatMessage(
- { id: "Deadline: {date}" },
+ {
+ defaultMessage: "Deadline: {date}",
+ },
{ date: dt(job.toDate).locale(lang).format("Do MMMM") }
)
- : intl.formatMessage({ id: "Open for application" })
+ : intl.formatMessage({
+ defaultMessage: "Open for application",
+ })
return (
@@ -53,7 +57,9 @@ export default function JobylonCard({ job }: JobylonCardProps) {
asChild
>
- {intl.formatMessage({ id: "View & apply" })}
+ {intl.formatMessage({
+ defaultMessage: "View & apply",
+ })}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/LoyaltyLevels/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/LoyaltyLevels/index.tsx
index 7ff0f4598..26f82cd4d 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/LoyaltyLevels/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/LoyaltyLevels/index.tsx
@@ -37,14 +37,17 @@ async function LevelCard({ level }: LevelCardProps) {
const intl = await getIntl()
let pointsMsg: React.ReactNode = intl.formatMessage(
- { id: "{pointsAmount, number} points" },
+ {
+ defaultMessage: "{pointsAmount, number} points",
+ },
{ pointsAmount: level.required_points }
)
if (level.required_nights) {
pointsMsg = intl.formatMessage(
{
- id: "{pointsAmount, number} points
or {nightsAmount, number} nights ",
+ defaultMessage:
+ "{pointsAmount, number} points
or {nightsAmount, number} nights ",
},
{
pointsAmount: level.required_points,
@@ -63,7 +66,9 @@ async function LevelCard({ level }: LevelCardProps) {
tilted="large"
>
{intl.formatMessage(
- { id: "Level {level}" },
+ {
+ defaultMessage: "Level {level}",
+ },
{ level: level.user_facing_tag }
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Buttons/CopyButton.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Buttons/CopyButton.tsx
index e41b13e93..7f99cb5a0 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Buttons/CopyButton.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Buttons/CopyButton.tsx
@@ -18,10 +18,16 @@ export default function CopyButton({ membershipNumber }: CopyButtonProps) {
try {
navigator.clipboard.writeText(membershipNumber)
toast.success(
- intl.formatMessage({ id: "Membership ID copied to clipboard" })
+ intl.formatMessage({
+ defaultMessage: "Membership ID copied to clipboard",
+ })
)
} catch {
- toast.error(intl.formatMessage({ id: "Failed to copy" }))
+ toast.error(
+ intl.formatMessage({
+ defaultMessage: "Failed to copy",
+ })
+ )
}
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/MembershipNumber/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/MembershipNumber/index.tsx
index 0e21ec87a..ea332839d 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/MembershipNumber/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/MembershipNumber/index.tsx
@@ -19,12 +19,17 @@ export default async function MembershipNumber({
return (
- {intl.formatMessage({ id: "Membership ID:" })}
+ {intl.formatMessage({
+ defaultMessage: "Membership ID:",
+ })}
- {membership?.membershipNumber ?? intl.formatMessage({ id: "N/A" })}
+ {membership?.membershipNumber ??
+ intl.formatMessage({
+ defaultMessage: "N/A",
+ })}
{membership?.membershipNumber && (
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/index.tsx
index d11b4ae81..1403b5a77 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Friend/index.tsx
@@ -24,10 +24,14 @@ export default async function Friend({
}
const isHighestLevel = isHighestMembership(membership.membershipLevel)
- const lvlMessageHighest = intl.formatMessage({ id: "Highest level" })
+ const lvlMessageHighest = intl.formatMessage({
+ defaultMessage: "Highest level",
+ })
const lvlMessageLevel = intl.formatMessage(
- { id: "Level {level}" },
+ {
+ defaultMessage: "Level {level}",
+ },
{ level: membershipLevels[membership.membershipLevel] }
)
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/ExpiringPoints/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/ExpiringPoints/index.tsx
index e4fc03099..656183c1a 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/ExpiringPoints/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/ExpiringPoints/index.tsx
@@ -24,7 +24,9 @@ export default async function ExpiringPoints({ user }: UserProps) {
{intl.formatMessage(
- { id: "{points} spendable points expiring by {date}" },
+ {
+ defaultMessage: "{points} spendable points expiring by {date}",
+ },
{
points: intl.formatNumber(membership.pointsToExpire),
date: d.format(dateFormat),
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/Points/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/Points/index.tsx
index 29d991485..fb6dc3a8c 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/Points/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Overview/Stats/Points/index.tsx
@@ -25,15 +25,23 @@ export default async function Points({ user }: UserProps) {
{nextLevel && (
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/OverviewTable/Client.tsx b/apps/scandic-web/components/Blocks/DynamicContent/OverviewTable/Client.tsx
index e3c960f39..6dd73e3d3 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/OverviewTable/Client.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/OverviewTable/Client.tsx
@@ -99,9 +99,13 @@ export default function OverviewTableClient({
showDescription={false}
/>
- {intl.formatMessage({ id: "Your level" })}
+ {intl.formatMessage({
+ defaultMessage: "Your level",
+ })}
)
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/AwardPoints/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/AwardPoints/index.tsx
index 73c323f2c..cd0d7bfaf 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/AwardPoints/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/AwardPoints/index.tsx
@@ -34,7 +34,9 @@ export default function AwardPoints({
{isCalculated
? intl.formatNumber(awardPoints)
- : intl.formatMessage({ id: "Points being calculated" })}
+ : intl.formatMessage({
+ defaultMessage: "Points being calculated",
+ })}
)
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx
index 86f70e73a..6528c87f3 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx
@@ -24,7 +24,7 @@ export default function Row({ transaction }: RowProps) {
const nightsMsg = intl.formatMessage(
{
- id: "{totalNights, plural, one {# night} other {# nights}}",
+ defaultMessage: "{totalNights, plural, one {# night} other {# nights}}",
},
{
totalNights: transaction.nights,
@@ -40,28 +40,40 @@ export default function Row({ transaction }: RowProps) {
case Transactions.rewardType.stay:
case Transactions.rewardType.stayAdj:
if (transaction.hotelId === "ORS") {
- description = intl.formatMessage({ id: "Former Scandic Hotel" })
+ description = intl.formatMessage({
+ defaultMessage: "Former Scandic Hotel",
+ })
}
if (transaction.confirmationNumber === "BALFWD") {
description = intl.formatMessage({
- id: "Points earned prior to May 1, 2021",
+ defaultMessage: "Points earned prior to May 1, 2021",
})
}
break
case Transactions.rewardType.ancillary:
- description = intl.formatMessage({ id: "Extras to your booking" })
+ description = intl.formatMessage({
+ defaultMessage: "Extras to your booking",
+ })
break
case Transactions.rewardType.enrollment:
- description = intl.formatMessage({ id: "Sign up bonus" })
+ description = intl.formatMessage({
+ defaultMessage: "Sign up bonus",
+ })
break
case Transactions.rewardType.mastercard_points:
- description = intl.formatMessage({ id: "Scandic Friends Mastercard" })
+ description = intl.formatMessage({
+ defaultMessage: "Scandic Friends Mastercard",
+ })
break
case Transactions.rewardType.tui_points:
- description = intl.formatMessage({ id: "TUI Points" })
+ description = intl.formatMessage({
+ defaultMessage: "TUI Points",
+ })
case Transactions.rewardType.pointShop:
- description = intl.formatMessage({ id: "Scandic Friends Point Shop" })
+ description = intl.formatMessage({
+ defaultMessage: "Scandic Friends Point Shop",
+ })
break
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/index.tsx
index c40429774..23bc2eefe 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/index.tsx
@@ -15,10 +15,18 @@ export default function ClientTable({ transactions }: ClientTableProps) {
const intl = useIntl()
const tableHeadings = [
- intl.formatMessage({ id: "Points" }),
- intl.formatMessage({ id: "Description" }),
- intl.formatMessage({ id: "Booking number" }),
- intl.formatMessage({ id: "Arrival date" }),
+ intl.formatMessage({
+ defaultMessage: "Points",
+ }),
+ intl.formatMessage({
+ defaultMessage: "Description",
+ }),
+ intl.formatMessage({
+ defaultMessage: "Booking number",
+ }),
+ intl.formatMessage({
+ defaultMessage: "Arrival date",
+ }),
]
return (
@@ -44,7 +52,9 @@ export default function ClientTable({ transactions }: ClientTableProps) {
) : (
- {intl.formatMessage({ id: "No transactions available" })}
+ {intl.formatMessage({
+ defaultMessage: "No transactions available",
+ })}
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/ExpiringPoints/ExpiringPointsTable/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/ExpiringPoints/ExpiringPointsTable/index.tsx
index 89e476f1f..d46423353 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Points/ExpiringPoints/ExpiringPointsTable/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/ExpiringPoints/ExpiringPointsTable/index.tsx
@@ -22,8 +22,12 @@ export default function ExpiringPointsTable({
const expiration = dt(expirationDate).locale(lang).format("DD MMM YYYY")
const tableHeadings = [
- intl.formatMessage({ id: "Points" }),
- intl.formatMessage({ id: "Expiration Date" }),
+ intl.formatMessage({
+ defaultMessage: "Points",
+ }),
+ intl.formatMessage({
+ defaultMessage: "Expiration Date",
+ }),
]
return (
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/NextLevel/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/NextLevel/index.tsx
index 9295e4510..68c5b1d9d 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/NextLevel/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/NextLevel/index.tsx
@@ -47,12 +47,16 @@ export default async function NextLevelRewardsBlock({
- {intl.formatMessage({ id: "Level up to unlock" })}
+ {intl.formatMessage({
+ defaultMessage: "Level up to unlock",
+ })}
{intl.formatMessage(
- { id: "As our {level}" },
+ {
+ defaultMessage: "As our {level}",
+ },
{ level: nextLevelRewards.level?.name }
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ActiveRedeemedBadge.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ActiveRedeemedBadge.tsx
index 1f52ea604..9bf07cc21 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ActiveRedeemedBadge.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ActiveRedeemedBadge.tsx
@@ -26,7 +26,11 @@ export default function ActiveRedeemedBadge() {
>
-
{intl.formatMessage({ id: "Active" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Active",
+ })}
+
)
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx
index 6ac0942f4..b1f9ad451 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/ConfirmClose.tsx
@@ -17,17 +17,18 @@ export function ConfirmClose({ close }: { close: VoidFunction }) {
{intl.formatMessage({
- id: "If you close this your benefit will be removed",
+ defaultMessage: "If you close this your benefit will be removed",
})}
{intl.formatMessage({
- id: "Have you showed this benefit to the hotel staff?",
+ defaultMessage: "Have you showed this benefit to the hotel staff?",
})}
{intl.formatMessage({
- id: "If not, please go back and do so before you close this. Once you close this your benefit will be void and removed from My Benefits.",
+ defaultMessage:
+ "If not, please go back and do so before you close this. Once you close this your benefit will be void and removed from My Benefits.",
})}
@@ -37,10 +38,14 @@ export function ConfirmClose({ close }: { close: VoidFunction }) {
intent="primary"
theme="base"
>
- {intl.formatMessage({ id: "No, go back" })}
+ {intl.formatMessage({
+ defaultMessage: "No, go back",
+ })}
- {intl.formatMessage({ id: "Yes, close and remove benefit" })}
+ {intl.formatMessage({
+ defaultMessage: "Yes, close and remove benefit",
+ })}
>
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Campaign.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Campaign.tsx
index abfa8b5e8..54f72e44f 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Campaign.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Campaign.tsx
@@ -29,7 +29,9 @@ export default function Campaign({ reward }: { reward: Campaign }) {
{reward.description}
- {intl.formatMessage({ id: "Promo code" })}
+ {intl.formatMessage({
+ defaultMessage: "Promo code",
+ })}
{reward.operaRewardId}
@@ -41,9 +43,17 @@ export default function Campaign({ reward }: { reward: Campaign }) {
onClick={() => {
try {
navigator.clipboard.writeText(reward.operaRewardId)
- toast.success(intl.formatMessage({ id: "Copied to clipboard" }))
+ toast.success(
+ intl.formatMessage({
+ defaultMessage: "Copied to clipboard",
+ })
+ )
} catch {
- toast.error(intl.formatMessage({ id: "Failed to copy" }))
+ toast.error(
+ intl.formatMessage({
+ defaultMessage: "Failed to copy",
+ })
+ )
}
}}
type="button"
@@ -53,7 +63,9 @@ export default function Campaign({ reward }: { reward: Campaign }) {
intent="primary"
>
- {intl.formatMessage({ id: "Copy promotion code" })}
+ {intl.formatMessage({
+ defaultMessage: "Copy promotion code",
+ })}
>
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Tier.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Tier.tsx
index 71a36a3a4..d27190518 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Tier.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/Flows/Tier.tsx
@@ -86,7 +86,9 @@ export default function Tier({
intent="primary"
theme="base"
>
- {intl.formatMessage({ id: "Redeem benefit" })}
+ {intl.formatMessage({
+ defaultMessage: "Redeem benefit",
+ })}
)}
@@ -99,14 +101,18 @@ export default function Tier({
intent="primary"
theme="base"
>
- {intl.formatMessage({ id: "Yes, redeem" })}
+ {intl.formatMessage({
+ defaultMessage: "Yes, redeem",
+ })}
setRedeemStep("initial")}
intent="secondary"
theme="base"
>
- {intl.formatMessage({ id: "Go back" })}
+ {intl.formatMessage({
+ defaultMessage: "Go back",
+ })}
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/MembershipNumberBadge.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/MembershipNumberBadge.tsx
index cc4df078b..5abff1df4 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/MembershipNumberBadge.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/MembershipNumberBadge.tsx
@@ -15,7 +15,9 @@ export default function MembershipNumberBadge({
{intl.formatMessage(
- { id: "Membership ID: {id}" },
+ {
+ defaultMessage: "Membership ID: {id}",
+ },
{ id: membershipNumber }
)}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/TimedRedeemedBadge.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/TimedRedeemedBadge.tsx
index 181f03711..b0e4d2d27 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/TimedRedeemedBadge.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/TimedRedeemedBadge.tsx
@@ -24,7 +24,7 @@ export default function TimedRedeemedBadge() {
{intl.formatMessage({
- id: "Redeemed & valid through:",
+ defaultMessage: "Redeemed & valid through:",
})}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx
index ab2b6fb36..bf20c1e2f 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx
@@ -71,8 +71,12 @@ export default function Redeem({ reward, membershipNumber }: RedeemProps) {
>
{reward.redeemLocation === "Non-redeemable"
- ? intl.formatMessage({ id: "How to use" })
- : intl.formatMessage({ id: "Open" })}
+ ? intl.formatMessage({
+ defaultMessage: "How to use",
+ })
+ : intl.formatMessage({
+ defaultMessage: "Open",
+ })}
- {intl.formatMessage({ id: "Unlink accounts" })}
+ {intl.formatMessage({
+ defaultMessage: "Unlink accounts",
+ })}
}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx
index c93ce02c4..897cd0e45 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx
@@ -58,7 +58,8 @@ export default async function SASLinkedAccount({
{intl.formatMessage({
- id: "Changes in your level match can take up to 24 hours to be displayed.",
+ defaultMessage:
+ "Changes in your level match can take up to 24 hours to be displayed.",
})}
@@ -96,20 +97,37 @@ async function MatchedAccountInfo() {
-
{intl.formatMessage({ id: "Linked account" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Linked account",
+ })}
+
- {intl.formatMessage({ id: "SAS EuroBonus" })}
+
+ {intl.formatMessage({
+ defaultMessage: "SAS EuroBonus",
+ })}
+
-
{intl.formatMessage({ id: "Level" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Level",
+ })}
+
{sasLevelName}
-
{intl.formatMessage({ id: "Membership number" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Membership number",
+ })}
+
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
EB{sasMembershipNumber}
@@ -137,17 +155,33 @@ async function MatchedAccountInfoSkeleton() {
-
{intl.formatMessage({ id: "Linked account" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Linked account",
+ })}
+
- {intl.formatMessage({ id: "SAS EuroBonus" })}
+
+ {intl.formatMessage({
+ defaultMessage: "SAS EuroBonus",
+ })}
+
- {intl.formatMessage({ id: "Level" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Level",
+ })}
+
- {intl.formatMessage({ id: "Membership number" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Membership number",
+ })}
+
@@ -188,19 +222,22 @@ async function TierMatchMessage({
const messageMap: Record = {
boostedBySAS: intl.formatMessage(
{
- id: "EuroBonus {sasLevelName} has upgraded your Scandic Friends level to {scandicLevelName} .",
+ defaultMessage:
+ "EuroBonus {sasLevelName} has upgraded your Scandic Friends level to {scandicLevelName} .",
},
messageValues
),
boostedByScandic: intl.formatMessage(
{
- id: "Your Scandic Friends level {scandicLevelName} has upgraded you to EuroBonus {sasLevelName} .",
+ defaultMessage:
+ "Your Scandic Friends level {scandicLevelName} has upgraded you to EuroBonus {sasLevelName} .",
},
messageValues
),
noBoost: intl.formatMessage(
{
- id: "EuroBonus {sasLevelName} and {scandicLevelName} are equally matched tiers. Level up in one of your memberships to qualify for an upgrade!",
+ defaultMessage:
+ "EuroBonus {sasLevelName} and {scandicLevelName} are equally matched tiers. Level up in one of your memberships to qualify for an upgrade!",
},
messageValues
),
@@ -214,7 +251,11 @@ async function TierMatchMessage({
return (
-
{intl.formatMessage({ id: "Level match status" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Level match status",
+ })}
+
{iconMap[matchState]}
@@ -230,7 +271,11 @@ async function TierMatchMessageSkeleton() {
return (
-
{intl.formatMessage({ id: "Level match status" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Level match status",
+ })}
+
@@ -256,7 +301,11 @@ async function TierMatchExpiration({
return (
-
{intl.formatMessage({ id: "Upgrade valid until" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Upgrade valid until",
+ })}
+
{matchState === "boostedBySAS"
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsForm.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsForm.tsx
index 922d1b4b1..d33734132 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsForm.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsForm.tsx
@@ -78,18 +78,28 @@ async function TransferPointsFormContent({
- {intl.formatMessage({ id: "Transfer from" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Transfer from",
+ })}
+
- {intl.formatMessage({ id: "SAS EuroBonus" })}
+
+ {intl.formatMessage({
+ defaultMessage: "SAS EuroBonus",
+ })}
+
- {intl.formatMessage({ id: "Balance" })}
+ {intl.formatMessage({
+ defaultMessage: "Balance",
+ })}
{sasPoints === null ? (
@@ -102,7 +112,9 @@ async function TransferPointsFormContent({
{intl.formatMessage(
- { id: "{points, number} p" },
+ {
+ defaultMessage: "{points, number} p",
+ },
{ points: sasPoints }
)}
@@ -115,7 +127,7 @@ async function TransferPointsFormContent({
{intl.formatMessage({
- id: "You have no points to transfer.",
+ defaultMessage: "You have no points to transfer.",
})}
@@ -126,17 +138,27 @@ async function TransferPointsFormContent({
- {intl.formatMessage({ id: "Transfer to" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Transfer to",
+ })}
+
- {intl.formatMessage({ id: "Scandic Friends" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Scandic Friends",
+ })}
+
- {intl.formatMessage({ id: "Balance" })}
+ {intl.formatMessage({
+ defaultMessage: "Balance",
+ })}
{scandicPoints === null ? (
@@ -149,7 +171,9 @@ async function TransferPointsFormContent({
{intl.formatMessage(
- { id: "{points, number} p" },
+ {
+ defaultMessage: "{points, number} p",
+ },
{ points: scandicPoints }
)}
@@ -167,7 +191,7 @@ async function TransferPointsFormContent({
{intl.formatMessage({
- id: "Transferred points will not be level qualifying",
+ defaultMessage: "Transferred points will not be level qualifying",
})}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsFormClient.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsFormClient.tsx
index 66d6621f1..7f8ac4ae4 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsFormClient.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/TransferPointsFormClient.tsx
@@ -66,7 +66,9 @@ export function TransferPointsFormClient({
className={styles.slider}
// Set max value to 1 if sasPoints is 0 since slider requires a range
maxValue={hasNoSasPoints ? 1 : sasPoints}
- aria-label={intl.formatMessage({ id: "EB points to transfer" })}
+ aria-label={intl.formatMessage({
+ defaultMessage: "EB points to transfer",
+ })}
formatOptions={{
useGrouping: true,
maximumFractionDigits: 0,
@@ -85,7 +87,9 @@ export function TransferPointsFormClient({
{/* TODO maybe dynamic string based on exchange rate */}
{intl.formatMessage({
- id: "1 EuroBonus point = 2 Scandic Friends points",
+ defaultMessage: "1 EuroBonus point = 2 Scandic Friends points",
})}
- {intl.formatMessage({ id: "SF points to receive" })}
+
+ {intl.formatMessage({
+ defaultMessage: "SF points to receive",
+ })}
+
{intl.formatNumber(calculatedPoints)}
@@ -174,7 +182,9 @@ function ConfirmModal({
onClick={() => handleToggle(true)}
disabled={disabled}
>
- {intl.formatMessage({ id: "Transfer points" })}
+ {intl.formatMessage({
+ defaultMessage: "Transfer points",
+ })}
@@ -186,18 +196,25 @@ function ConfirmModal({
/>
- {intl.formatMessage({ id: "Proceed with point transfer?" })}
+ {intl.formatMessage({
+ defaultMessage: "Proceed with point transfer?",
+ })}
- {intl.formatMessage({ id: "You are about to exchange:" })}
+
+ {intl.formatMessage({
+ defaultMessage: "You are about to exchange:",
+ })}
+
{intl.formatMessage(
{
- id: "{sasPoints, number} EuroBonus points to {scandicPoints, number} Scandic Friends points ",
+ defaultMessage:
+ "{sasPoints, number} EuroBonus points to {scandicPoints, number} Scandic Friends points ",
},
{
sasPoints,
@@ -215,7 +232,8 @@ function ConfirmModal({
{intl.formatMessage({
- id: "Your exchanged points will retain their original expiry date with a maximum validity of 12 months.",
+ defaultMessage:
+ "Your exchanged points will retain their original expiry date with a maximum validity of 12 months.",
})}
@@ -227,7 +245,7 @@ function ConfirmModal({
color="none"
>
{intl.formatMessage({
- id: "Yes, I want to transfer my points",
+ defaultMessage: "Yes, I want to transfer my points",
})}
@@ -237,7 +255,9 @@ function ConfirmModal({
theme="base"
onClick={() => handleToggle(false)}
>
- {intl.formatMessage({ id: "Cancel" })}
+ {intl.formatMessage({
+ defaultMessage: "Cancel",
+ })}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/EmptyPreviousStays/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/EmptyPreviousStays/index.tsx
index c49821fb4..10adeec8e 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/EmptyPreviousStays/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/EmptyPreviousStays/index.tsx
@@ -9,7 +9,7 @@ export default async function EmptyPreviousStaysBlock() {
{intl.formatMessage({
- id: "You have no previous stays.",
+ defaultMessage: "You have no previous stays.",
})}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx
index f9eed94ff..99d65b1c3 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx
@@ -30,7 +30,9 @@ export default function ShowMoreButton({
size={20}
color="CurrentColor"
/>
- {intl.formatMessage({ id: "Show more" })}
+ {intl.formatMessage({
+ defaultMessage: "Show more",
+ })}
)
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Soonest/EmptyUpcomingStays/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Soonest/EmptyUpcomingStays/index.tsx
index 4cbcbe9f5..42723547e 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Soonest/EmptyUpcomingStays/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Soonest/EmptyUpcomingStays/index.tsx
@@ -28,14 +28,20 @@ export default async function EmptyUpcomingStaysBlock() {
className={styles.title}
textAlign="center"
>
- {intl.formatMessage({ id: "You have no upcoming stays." })}
+ {intl.formatMessage({
+ defaultMessage: "You have no upcoming stays.",
+ })}
- {intl.formatMessage({ id: "Where should you go next?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where should you go next?",
+ })}
- {intl.formatMessage({ id: "Get inspired" })}
+ {intl.formatMessage({
+ defaultMessage: "Get inspired",
+ })}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/StayCard/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/StayCard/index.tsx
index 52620bb42..c496813e9 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/StayCard/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/StayCard/index.tsx
@@ -59,6 +59,7 @@ export default function StayCard({ stay }: StayCardProps) {
{arrivalDate}
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
{" - "}
{departDate}
diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Upcoming/EmptyUpcomingStays/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Upcoming/EmptyUpcomingStays/index.tsx
index 4cbcbe9f5..42723547e 100644
--- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Upcoming/EmptyUpcomingStays/index.tsx
+++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Upcoming/EmptyUpcomingStays/index.tsx
@@ -28,14 +28,20 @@ export default async function EmptyUpcomingStaysBlock() {
className={styles.title}
textAlign="center"
>
- {intl.formatMessage({ id: "You have no upcoming stays." })}
+ {intl.formatMessage({
+ defaultMessage: "You have no upcoming stays.",
+ })}
- {intl.formatMessage({ id: "Where should you go next?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where should you go next?",
+ })}
- {intl.formatMessage({ id: "Get inspired" })}
+ {intl.formatMessage({
+ defaultMessage: "Get inspired",
+ })}
diff --git a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx
index 273d2da61..627815cff 100644
--- a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx
+++ b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx
@@ -56,7 +56,9 @@ export default async function HotelListingItem({
{intl.formatMessage(
- { id: "{number} km to city center" },
+ {
+ defaultMessage: "{number} km to city center",
+ },
{
number: getSingleDecimal(
hotel.location.distanceToCentre / 1000
diff --git a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/utils.ts b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/utils.ts
index 178471abb..f3a54d822 100644
--- a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/utils.ts
+++ b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/utils.ts
@@ -21,7 +21,9 @@ export function getTypeSpecificInformation(
alt: images.metaData.altText,
},
cta: {
- text: intl.formatMessage({ id: "See hotel details" }),
+ text: intl.formatMessage({
+ defaultMessage: "See hotel details",
+ }),
url,
openInNewTab: false,
},
@@ -41,7 +43,9 @@ export function getTypeSpecificInformation(
}
if (meetingUrl) {
data.cta = {
- text: intl.formatMessage({ id: "Book a meeting" }),
+ text: intl.formatMessage({
+ defaultMessage: "Book a meeting",
+ }),
url: meetingUrl,
openInNewTab: true,
}
diff --git a/apps/scandic-web/components/BookingWidget/MobileToggleButton/index.tsx b/apps/scandic-web/components/BookingWidget/MobileToggleButton/index.tsx
index 6b586b4be..a20d45186 100644
--- a/apps/scandic-web/components/BookingWidget/MobileToggleButton/index.tsx
+++ b/apps/scandic-web/components/BookingWidget/MobileToggleButton/index.tsx
@@ -53,22 +53,31 @@ export default function MobileToggleButton({
}, 0)
const totalNightsMsg = intl.formatMessage(
- { id: "{totalNights, plural, one {# night} other {# nights}}" },
+ {
+ defaultMessage: "{totalNights, plural, one {# night} other {# nights}}",
+ },
{ totalNights }
)
const totalAdultsMsg = intl.formatMessage(
- { id: "{totalAdults, plural, one {# adult} other {# adults}}" },
+ {
+ defaultMessage: "{totalAdults, plural, one {# adult} other {# adults}}",
+ },
{ totalAdults }
)
const totalChildrenMsg = intl.formatMessage(
- { id: "{totalChildren, plural, one {# child} other {# children}}" },
+ {
+ defaultMessage:
+ "{totalChildren, plural, one {# child} other {# children}}",
+ },
{ totalChildren }
)
const totalRoomsMsg = intl.formatMessage(
- { id: "{totalRooms, plural, one {# room} other {# rooms}}" },
+ {
+ defaultMessage: "{totalRooms, plural, one {# room} other {# rooms}}",
+ },
{ totalRooms }
)
@@ -88,14 +97,18 @@ export default function MobileToggleButton({
- {intl.formatMessage({ id: "Where to?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where to?",
+ })}
{searchTerm
? searchTerm
- : intl.formatMessage({ id: "Destination" })}
+ : intl.formatMessage({
+ defaultMessage: "Destination",
+ })}
@@ -108,7 +121,9 @@ export default function MobileToggleButton({
{intl.formatMessage(
- { id: "{selectedFromDate} - {selectedToDate}" },
+ {
+ defaultMessage: "{selectedFromDate} - {selectedToDate}",
+ },
{
selectedFromDate,
selectedToDate,
@@ -133,7 +148,8 @@ export default function MobileToggleButton({
{intl.formatMessage(
{
- id: "{selectedFromDate} - {selectedToDate} ({totalNights}) {details}",
+ defaultMessage:
+ "{selectedFromDate} - {selectedToDate} ({totalNights}) {details}",
},
{
selectedFromDate,
@@ -162,7 +178,9 @@ export function MobileToggleButtonSkeleton() {
- {intl.formatMessage({ id: "Where to?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where to?",
+ })}
@@ -172,7 +190,10 @@ export function MobileToggleButtonSkeleton() {
{intl.formatMessage(
- { id: "{totalNights, plural, one {# night} other {# nights}}" },
+ {
+ defaultMessage:
+ "{totalNights, plural, one {# night} other {# nights}}",
+ },
{ totalNights: 0 }
)}
diff --git a/apps/scandic-web/components/Carousel/CarouselNavigation.tsx b/apps/scandic-web/components/Carousel/CarouselNavigation.tsx
index bd489ee5a..96a410019 100644
--- a/apps/scandic-web/components/Carousel/CarouselNavigation.tsx
+++ b/apps/scandic-web/components/Carousel/CarouselNavigation.tsx
@@ -22,7 +22,9 @@ export function CarouselPrevious({ className, ...props }: CarouselButtonProps) {
@@ -41,7 +43,9 @@ export function CarouselNext({ className, ...props }: CarouselButtonProps) {
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityDataContainer/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/CityDataContainer/index.tsx
index df8c7ac82..5580996bc 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/CityDataContainer/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/CityDataContainer/index.tsx
@@ -31,11 +31,18 @@ export default async function CityDataContainer({
const sortItems: SortItem[] = [
{
- label: intl.formatMessage({ id: "Recommended" }),
+ label: intl.formatMessage({
+ defaultMessage: "Recommended",
+ }),
value: SortOption.Recommended,
isDefault: true,
},
- { label: intl.formatMessage({ id: "Name" }), value: SortOption.Name },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "Name",
+ }),
+ value: SortOption.Name,
+ },
]
return (
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx
index 221296448..b9798f8cc 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx
@@ -31,7 +31,9 @@ export default function CityListingItem({ city }: CityListingItemProps) {
images={galleryImages}
fill
title={intl.formatMessage(
- { id: "{title} - Image gallery" },
+ {
+ defaultMessage: "{title} - Image gallery",
+ },
{ title: city.cityName }
)}
/>
@@ -57,7 +59,9 @@ export default function CityListingItem({ city }: CityListingItemProps) {
>
{intl.formatMessage(
- { id: "Explore {city}" },
+ {
+ defaultMessage: "Explore {city}",
+ },
{ city: city.cityName }
)}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx
index e01ac8382..637dd0096 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx
@@ -38,7 +38,8 @@ export default function CityListing() {
{intl.formatMessage(
{
- id: "{count, plural, one {# Location} other {# Locations}}",
+ defaultMessage:
+ "{count, plural, one {# Location} other {# Locations}}",
},
{ count: activeCities.length }
)}
@@ -48,9 +49,12 @@ export default function CityListing() {
{activeCities.length === 0 ? (
) : (
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
index e583a9f7c..c8feaab38 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
@@ -63,7 +63,9 @@ export default function HotelList() {
{intl.formatMessage(
- { id: "{count} hotels" },
+ {
+ defaultMessage: "{count} hotels",
+ },
{ count: visibleHotels.length }
)}
@@ -72,9 +74,12 @@ export default function HotelList() {
{activeHotels.length === 0 ? (
) : (
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelListItem/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelListItem/index.tsx
index 0913ff9bf..a5f706854 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelListItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelListItem/index.tsx
@@ -67,7 +67,9 @@ export default function HotelListItem(data: DestinationPagesHotelData) {
fill
sizes="(min-width: 768px) 350px, 100vw"
title={intl.formatMessage(
- { id: "{title} - Image gallery" },
+ {
+ defaultMessage: "{title} - Image gallery",
+ },
{ title: hotel.name }
)}
/>
@@ -93,7 +95,9 @@ export default function HotelListItem(data: DestinationPagesHotelData) {
{intl.formatMessage(
- { id: "{number} km to city center" },
+ {
+ defaultMessage: "{number} km to city center",
+ },
{
number: getSingleDecimal(
hotel.location.distanceToCentre / 1000
@@ -120,7 +124,9 @@ export default function HotelListItem(data: DestinationPagesHotelData) {
- {intl.formatMessage({ id: "See hotel details" })}
+ {intl.formatMessage({
+ defaultMessage: "See hotel details",
+ })}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityList/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityList/index.tsx
index ec1696b08..ff4b20e00 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityList/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityList/index.tsx
@@ -29,7 +29,9 @@ export default function CityList() {
{intl.formatMessage(
- { id: "{count} destinations" },
+ {
+ defaultMessage: "{count} destinations",
+ },
{ count: activeCities.length }
)}
@@ -38,9 +40,12 @@ export default function CityList() {
{activeCities.length === 0 ? (
) : (
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityListItem/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityListItem/index.tsx
index 3a727dfb6..4e78ed4b7 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityListItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/CountryMap/CityListItem/index.tsx
@@ -29,7 +29,9 @@ export default function CityListItem({ city }: CityListItemProps) {
images={galleryImages}
fill
title={intl.formatMessage(
- { id: "{title} - Image gallery" },
+ {
+ defaultMessage: "{title} - Image gallery",
+ },
{ title: city.cityName }
)}
/>
@@ -47,7 +49,9 @@ export default function CityListItem({ city }: CityListItemProps) {
{intl.formatMessage(
- { id: "Explore {city}" },
+ {
+ defaultMessage: "Explore {city}",
+ },
{ city: city.cityName }
)}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/SidebarContentWrapper/utils.ts b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/SidebarContentWrapper/utils.ts
index 6902c1d8c..57eaa5e61 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/SidebarContentWrapper/utils.ts
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCountryPage/SidebarContentWrapper/utils.ts
@@ -18,15 +18,24 @@ export function getHeadingText(
if (facilityFilter) {
return intl.formatMessage(
- { id: "Hotels with {filter} in {location}" },
+ {
+ defaultMessage: "Hotels with {filter} in {location}",
+ },
{ location, filter: facilityFilter.name }
)
} else if (surroudingsFilter) {
return intl.formatMessage(
- { id: "Hotels near {filter} in {location}" },
+ {
+ defaultMessage: "Hotels near {filter} in {location}",
+ },
{ location, filter: surroudingsFilter.name }
)
}
}
- return intl.formatMessage({ id: "Hotels in {location}" }, { location })
+ return intl.formatMessage(
+ {
+ defaultMessage: "Hotels in {location}",
+ },
+ { location }
+ )
}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/DestinationsList/Destination/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/DestinationsList/Destination/index.tsx
index 19c8db202..acdfc403c 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/DestinationsList/Destination/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/DestinationsList/Destination/index.tsx
@@ -18,7 +18,7 @@ export default async function Destination({
const intl = await getIntl()
const accordionSubtitle = intl.formatMessage(
{
- id: "{amount, plural, one {# hotel} other {# hotels}}",
+ defaultMessage: "{amount, plural, one {# hotel} other {# hotels}}",
},
{ amount: numberOfHotels }
)
@@ -36,10 +36,14 @@ export default async function Destination({
color="baseTextMediumContrast"
textDecoration="underline"
>
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
{`${city.name} (${city.hotelCount})`}
) : (
- {`${city.name} (${city.hotelCount})`}
+ <>
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
+ {`${city.name} (${city.hotelCount})`}
+ >
)}
) : null
@@ -49,7 +53,7 @@ export default async function Destination({
{intl.formatMessage(
{
- id: "View all hotels in {country}",
+ defaultMessage: "View all hotels in {country}",
},
{ country: country }
)}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/index.tsx
index 7d308a18f..3d7afb0fb 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/HotelsSection/index.tsx
@@ -18,7 +18,9 @@ export default async function HotelsSection() {
return (
- {intl.formatMessage({ id: "Explore all our hotels" })}
+ {intl.formatMessage({
+ defaultMessage: "Explore all our hotels",
+ })}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/index.tsx
index 0badc3d9c..5eb451c02 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/index.tsx
@@ -60,14 +60,16 @@ export function ClientInline({
- {intl.formatMessage({ id: "Where to?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where to?",
+ })}
{
startTransition(() => {
@@ -83,7 +85,11 @@ export function ClientInline({
{state.value !== "" && (
- Clear
+
+ {intl.formatMessage({
+ defaultMessage: "Clear",
+ })}
+
)}
@@ -96,7 +102,9 @@ export function ClientInline({
type="submit"
>
- {intl.formatMessage({ id: "Search" })}
+ {intl.formatMessage({
+ defaultMessage: "Search",
+ })}
@@ -113,7 +121,9 @@ export function ClientInline({
>
{showResults ? (
- {intl.formatMessage({ id: "Where to?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where to?",
+ })}
- {intl.formatMessage({ id: "Hotels & Destinations" })}
+ {intl.formatMessage({
+ defaultMessage: "Hotels & Destinations",
+ })}
@@ -62,12 +66,16 @@ export function ClientModal({
- {intl.formatMessage({ id: "Find a location" })}
+ {intl.formatMessage({
+ defaultMessage: "Find a location",
+ })}
@@ -91,14 +99,16 @@ export function ClientModal({
>
- {intl.formatMessage({ id: "Where to?" })}
+ {intl.formatMessage({
+ defaultMessage: "Where to?",
+ })}
{
startTransition(() => {
@@ -115,7 +125,9 @@ export function ClientModal({
{state.value !== "" && (
- Clear
+ {intl.formatMessage({
+ defaultMessage: "Clear",
+ })}
)}
@@ -132,7 +144,9 @@ export function ClientModal({
>
{showResults ? (
{intl.formatMessage({
- id: "Loading results",
+ defaultMessage: "Loading results",
})}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/index.tsx
index 3e41881cf..de5e47794 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/index.tsx
@@ -45,13 +45,16 @@ export function Results({
<>
- {intl.formatMessage({ id: "No results" })}
+ {intl.formatMessage({
+ defaultMessage: "No results",
+ })}
{intl.formatMessage({
- id: "We couldn't find a matching location for your search.",
+ defaultMessage:
+ "We couldn't find a matching location for your search.",
})}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/index.tsx
index db8d77eb0..97d802125 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/index.tsx
@@ -158,7 +158,9 @@ export function JumpToClient({
type: "clearHistory",
closesModal: false,
icon: ,
- displayName: intl.formatMessage({ id: "Clear searches" }),
+ displayName: intl.formatMessage({
+ defaultMessage: "Clear searches",
+ }),
},
],
},
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/OverviewMapContainer/InputForm/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/OverviewMapContainer/InputForm/index.tsx
index f91466b9f..7677fb992 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/OverviewMapContainer/InputForm/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/OverviewMapContainer/InputForm/index.tsx
@@ -10,7 +10,7 @@ export default function InputForm() {
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/ExperienceList/utils.tsx b/apps/scandic-web/components/ContentType/DestinationPage/ExperienceList/utils.tsx
index 967bd9bf3..f6c970cad 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/ExperienceList/utils.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/ExperienceList/utils.tsx
@@ -17,49 +17,63 @@ export function mapExperiencesToListData(
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Hiking" }),
+ name: intl.formatMessage({
+ defaultMessage: "Hiking",
+ }),
}
case "Kayaking":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Kayaking" }),
+ name: intl.formatMessage({
+ defaultMessage: "Kayaking",
+ }),
}
case "Bike friendly":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Bike friendly" }),
+ name: intl.formatMessage({
+ defaultMessage: "Bike friendly",
+ }),
}
case "Museums":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Museums" }),
+ name: intl.formatMessage({
+ defaultMessage: "Museums",
+ }),
}
case "Family friendly":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Family friendly" }),
+ name: intl.formatMessage({
+ defaultMessage: "Family friendly",
+ }),
}
case "City pulse":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "City pulse" }),
+ name: intl.formatMessage({
+ defaultMessage: "City pulse",
+ }),
}
case "Nightlife":
return {
Icon: (props: MaterialIconSetIconProps) => (
),
- name: intl.formatMessage({ id: "Nightlife" }),
+ name: intl.formatMessage({
+ defaultMessage: "Nightlife",
+ }),
}
default:
return {
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelDataContainer/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelDataContainer/index.tsx
index 2197306da..099c52a57 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelDataContainer/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelDataContainer/index.tsx
@@ -23,13 +23,22 @@ export default async function HotelDataContainer({
const sortItems: SortItem[] = [
{
- label: intl.formatMessage({ id: "Distance to city center" }),
+ label: intl.formatMessage({
+ defaultMessage: "Distance to city center",
+ }),
value: SortOption.Distance,
isDefault: true,
},
- { label: intl.formatMessage({ id: "Name" }), value: SortOption.Name },
{
- label: intl.formatMessage({ id: "TripAdvisor rating" }),
+ label: intl.formatMessage({
+ defaultMessage: "Name",
+ }),
+ value: SortOption.Name,
+ },
+ {
+ label: intl.formatMessage({
+ defaultMessage: "TripAdvisor rating",
+ }),
value: SortOption.TripAdvisorRating,
},
]
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/HotelListingItem/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/HotelListingItem/index.tsx
index dc4ce233a..3e961c8cf 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/HotelListingItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/HotelListingItem/index.tsx
@@ -48,7 +48,9 @@ export default function HotelListingItem(data: DestinationPagesHotelData) {
fill
sizes="(min-width: 768px) 350px, 100vw"
title={intl.formatMessage(
- { id: "{title} - Image gallery" },
+ {
+ defaultMessage: "{title} - Image gallery",
+ },
{ title: hotel.name }
)}
/>
@@ -72,7 +74,9 @@ export default function HotelListingItem(data: DestinationPagesHotelData) {
{intl.formatMessage(
- { id: "{number} km to city center" },
+ {
+ defaultMessage: "{number} km to city center",
+ },
{
number: getSingleDecimal(
hotel.location.distanceToCentre / 1000
@@ -107,7 +111,9 @@ export default function HotelListingItem(data: DestinationPagesHotelData) {
scroll={true}
onClick={() => setActiveMarker(hotel.id)}
>
- {intl.formatMessage({ id: "See on map" })}
+ {intl.formatMessage({
+ defaultMessage: "See on map",
+ })}
- {intl.formatMessage({ id: "See hotel details" })}
+ {intl.formatMessage({
+ defaultMessage: "See hotel details",
+ })}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/index.tsx
index 3a6d2af6b..d4f51cf5f 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelListing/index.tsx
@@ -51,7 +51,7 @@ export default function HotelListing() {
{intl.formatMessage(
{
- id: "{count, plural, one {# Hotel} other {# Hotels}}",
+ defaultMessage: "{count, plural, one {# Hotel} other {# Hotels}}",
},
{ count: activeHotels.length }
)}
@@ -68,7 +68,9 @@ export default function HotelListing() {
>
- {intl.formatMessage({ id: "See on map" })}
+ {intl.formatMessage({
+ defaultMessage: "See on map",
+ })}
)}
@@ -78,9 +80,12 @@ export default function HotelListing() {
{activeHotels.length === 0 ? (
) : (
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
index 6ffbb721c..1ed744181 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
@@ -55,7 +55,9 @@ export default function HotelMapCard({
variant="icon"
className={styles.closeButton}
onClick={handleClose}
- aria-label={intl.formatMessage({ id: "Close" })}
+ aria-label={intl.formatMessage({
+ defaultMessage: "Close",
+ })}
>
- {intl.formatMessage({ id: "See hotel information" })}
+ {intl.formatMessage({
+ defaultMessage: "See hotel information",
+ })}
)}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/Map/DynamicMap/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/Map/DynamicMap/index.tsx
index 441021181..b3ec2fb17 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/Map/DynamicMap/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/Map/DynamicMap/index.tsx
@@ -111,7 +111,15 @@ export default function DynamicMap({
)}
ref={ref}
>
- Unable to display map}>
+
+ {intl.formatMessage({
+ defaultMessage: "Unable to display map",
+ })}
+
+ }
+ >
{children}
@@ -125,7 +133,11 @@ export default function DynamicMap({
onClick={onClose}
>
-
{intl.formatMessage({ id: "Close the map" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Close the map",
+ })}
+
)}
@@ -136,7 +148,9 @@ export default function DynamicMap({
size="small"
className={styles.zoomButton}
onClick={zoomIn}
- aria-label={intl.formatMessage({ id: "Zoom out" })}
+ aria-label={intl.formatMessage({
+ defaultMessage: "Zoom out",
+ })}
>
@@ -147,7 +161,9 @@ export default function DynamicMap({
size="small"
className={styles.zoomButton}
onClick={zoomOut}
- aria-label={intl.formatMessage({ id: "Zoom in" })}
+ aria-label={intl.formatMessage({
+ defaultMessage: "Zoom in",
+ })}
>
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx
index d14640285..409600c9a 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx
@@ -146,7 +146,9 @@ export default function Map({
style={
{ "--destination-map-height": mapHeight } as React.CSSProperties
}
- aria-label={intl.formatMessage({ id: "Map view" })}
+ aria-label={intl.formatMessage({
+ defaultMessage: "Map view",
+ })}
>
- {intl.formatMessage({ id: "Back" })}
+ {intl.formatMessage({
+ defaultMessage: "Back",
+ })}
- {buttonText || intl.formatMessage({ id: "Read more" })}
+ {buttonText ||
+ intl.formatMessage({
+ defaultMessage: "Read more",
+ })}
- {intl.formatMessage({ id: "See on map" })}
+ {intl.formatMessage({
+ defaultMessage: "See on map",
+ })}
)
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/StaticMap/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/StaticMap/index.tsx
index 527ecd69d..50853f44d 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/StaticMap/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/StaticMap/index.tsx
@@ -32,8 +32,12 @@ export default async function DestinationStaticMap({
}: StaticMapProps) {
const intl = await getIntl()
const altText = city
- ? intl.formatMessage({ id: "Map of the city" })
- : intl.formatMessage({ id: "Map of the country" })
+ ? intl.formatMessage({
+ defaultMessage: "Map of the city",
+ })
+ : intl.formatMessage({
+ defaultMessage: "Map of the country",
+ })
const coordinates = location
? { lat: location.latitude, lng: location.longitude }
: undefined
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/TopImages/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/TopImages/index.tsx
index 584a74b51..4883eec7c 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/TopImages/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/TopImages/index.tsx
@@ -65,12 +65,16 @@ export default function TopImages({ images, destinationName }: TopImageProps) {
onClick={() => setLightboxState({ open: true, activeIndex: 0 })}
className={styles.seeAllButton}
>
- {intl.formatMessage({ id: "See all photos" })}
+ {intl.formatMessage({
+ defaultMessage: "See all photos",
+ })}
- {intl.formatMessage({ id: "At the hotel" })}
+
+ {intl.formatMessage({
+ defaultMessage: "At the hotel",
+ })}
+
{facilities.map((facility) => {
@@ -52,7 +56,9 @@ export default async function AmenitiesList({
weight="bold"
className={styles.showAllAmenities}
>
- {intl.formatMessage({ id: "See all amenities" })}
+ {intl.formatMessage({
+ defaultMessage: "See all amenities",
+ })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Facilities/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Facilities/index.tsx
index 73b4b3423..f1479fca4 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Facilities/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Facilities/index.tsx
@@ -51,10 +51,14 @@ export default async function Facilities({
case FacilityCardButtonText.MEETINGS:
case FacilityCardButtonText.RESTAURANT:
case FacilityCardButtonText.WELLNESS:
- return intl.formatMessage({ id: "Read more" })
+ return intl.formatMessage({
+ defaultMessage: "Read more",
+ })
default:
console.warn(`Unsupported option given: ${text}`)
- return intl.formatMessage({ id: "Read more" })
+ return intl.formatMessage({
+ defaultMessage: "Read more",
+ })
}
}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/IntroSection/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/IntroSection/index.tsx
index 79357c565..102024b52 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/IntroSection/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/IntroSection/index.tsx
@@ -22,7 +22,9 @@ export default async function IntroSection({
const { streetAddress, city } = address
const { distanceToCentre } = location
const formattedDistanceText = intl.formatMessage(
- { id: "{number} km to city center" },
+ {
+ defaultMessage: "{number} km to city center",
+ },
{ number: getSingleDecimal(distanceToCentre / 1000) }
)
@@ -32,7 +34,9 @@ export default async function IntroSection({
)
const formattedTripAdvisorText = hasTripAdvisorData
? intl.formatMessage(
- { id: "{rating} ({count} reviews on Tripadvisor)" },
+ {
+ defaultMessage: "{rating} ({count} reviews on Tripadvisor)",
+ },
{ rating: tripAdvisor.rating, count: tripAdvisor.numberOfReviews }
)
: ""
@@ -43,7 +47,9 @@ export default async function IntroSection({
- {intl.formatMessage({ id: "Welcome to" })}
+ {intl.formatMessage({
+ defaultMessage: "Welcome to",
+ })}
@@ -72,7 +78,9 @@ export default async function IntroSection({
href={`#s-${SidepeekSlugs.about}`}
scroll={false}
>
- {intl.formatMessage({ id: "Read more" })}
+ {intl.formatMessage({
+ defaultMessage: "Read more",
+ })}
{intl.formatMessage(
- { id: "Things nearby {hotelName}" },
+ {
+ defaultMessage: "Things nearby {hotelName}",
+ },
{ hotelName }
)}
@@ -163,7 +183,9 @@ export default function Sidebar({
{poi.name}
{intl.formatMessage(
- { id: "{distanceInKm} km" },
+ {
+ defaultMessage: "{distanceInKm} km",
+ },
{
distanceInKm: poi.distance,
}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Map/DynamicMap/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Map/DynamicMap/index.tsx
index d82ec8ba0..c2455b3bc 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Map/DynamicMap/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Map/DynamicMap/index.tsx
@@ -94,7 +94,11 @@ export default function DynamicMap({
onClick={handleClose}
>
- {intl.formatMessage({ id: "Close the map" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Close the map",
+ })}
+
)
@@ -109,7 +113,9 @@ export default function DynamicMap({
className={styles.dynamicMap}
style={{ "--hotel-map-height": mapHeight } as React.CSSProperties}
aria-label={intl.formatMessage(
- { id: "Things nearby {hotelName}" },
+ {
+ defaultMessage: "Things nearby {hotelName}",
+ },
{ hotelName }
)}
>
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Map/MapCard/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Map/MapCard/index.tsx
index de436cf6e..4ea36f82b 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Map/MapCard/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Map/MapCard/index.tsx
@@ -34,7 +34,9 @@ export default function MapCard({ hotelName, pois }: MapCardProps) {
textTransform="uppercase"
textAlign="center"
>
- {intl.formatMessage({ id: "Nearby" })}
+ {intl.formatMessage({
+ defaultMessage: "Nearby",
+ })}
{poi.name}
{intl.formatMessage(
- { id: "{distanceInKm} km" },
+ {
+ defaultMessage: "{distanceInKm} km",
+ },
{ distanceInKm: poi.distance }
)}
@@ -68,7 +72,9 @@ export default function MapCard({ hotelName, pois }: MapCardProps) {
{mapUrl ? (
- {intl.formatMessage({ id: "Explore nearby" })}
+ {intl.formatMessage({
+ defaultMessage: "Explore nearby",
+ })}
) : null}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Map/MobileMapToggle/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Map/MobileMapToggle/index.tsx
index a15e7c830..2a97cde47 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Map/MobileMapToggle/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Map/MobileMapToggle/index.tsx
@@ -41,7 +41,11 @@ export default function MobileMapToggle() {
color={!isMapView ? "Icon/Inverted" : "Icon/Accent"}
/>
- {intl.formatMessage({ id: "Hotel" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Hotel",
+ })}
+
- {intl.formatMessage({ id: "Map" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Map",
+ })}
+
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Map/StaticMap/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Map/StaticMap/index.tsx
index 231acddb8..8ded39998 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Map/StaticMap/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Map/StaticMap/index.tsx
@@ -34,7 +34,9 @@ export default async function StaticMap({
height={mapHeight}
zoomLevel={zoomLevel}
altText={intl.formatMessage(
- { id: "Map of {hotelName}" },
+ {
+ defaultMessage: "Map of {hotelName}",
+ },
{ hotelName }
)}
mapId={mapId}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/PreviewImages/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/PreviewImages/index.tsx
index b5b567d8b..2e462d5e7 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/PreviewImages/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/PreviewImages/index.tsx
@@ -44,12 +44,16 @@ export default function PreviewImages({
onClick={() => setLightboxIsOpen(true)}
className={styles.seeAllButton}
>
- {intl.formatMessage({ id: "See all photos" })}
+ {intl.formatMessage({
+ defaultMessage: "See all photos",
+ })}
{intl.formatMessage(
{
- id: "{size} ({max, plural, one {{range} guest} other {{range} guests}})",
+ defaultMessage:
+ "{size} ({max, plural, one {{range} guest} other {{range} guests}})",
},
{
size,
@@ -67,7 +70,9 @@ export function RoomCard({ room }: RoomCardProps) {
- {intl.formatMessage({ id: "See room details" })}
+ {intl.formatMessage({
+ defaultMessage: "See room details",
+ })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/Rooms/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/Rooms/index.tsx
index 7308ca1b3..62bffa80d 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/Rooms/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/Rooms/index.tsx
@@ -38,7 +38,11 @@ export function Rooms({ rooms, preamble }: RoomsProps) {
- {intl.formatMessage({ id: "Rooms" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Rooms",
+ })}
+
{preamble && (
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
index ab004c021..a092bd3f6 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
@@ -31,20 +31,26 @@ export default async function ContactInformation({
- {intl.formatMessage({ id: "Practical information" })}
+ {intl.formatMessage({
+ defaultMessage: "Practical information",
+ })}
- {intl.formatMessage({ id: "Address" })}
+ {intl.formatMessage({
+ defaultMessage: "Address",
+ })}
{hotelAddress.streetAddress}
{hotelAddress.city}
- {intl.formatMessage({ id: "Driving directions" })}
+ {intl.formatMessage({
+ defaultMessage: "Driving directions",
+ })}
- {intl.formatMessage({ id: "Google Maps" })}
+ {intl.formatMessage({
+ defaultMessage: "Google Maps",
+ })}
- {intl.formatMessage({ id: "Contact us" })}
+ {intl.formatMessage({
+ defaultMessage: "Contact us",
+ })}
{intl.formatMessage({
- id: "Price 0,16 €/min + local call charges",
+ defaultMessage: "Price 0,16 €/min + local call charges",
})}
) : null}
- {intl.formatMessage({ id: "Follow us" })}
+ {intl.formatMessage({
+ defaultMessage: "Follow us",
+ })}
{socials.instagram && (
@@ -95,7 +107,9 @@ export default async function ContactInformation({
- {intl.formatMessage({ id: "Email" })}
+ {intl.formatMessage({
+ defaultMessage: "Email",
+ })}
- {intl.formatMessage({ id: "Nordic Swan Ecolabel" })}
+ {intl.formatMessage({
+ defaultMessage: "Nordic Swan Ecolabel",
+ })}
{ecoLabels.svanenEcoLabelCertificateNumber}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
index 683ff2815..87e42a9df 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
@@ -24,7 +24,9 @@ export default async function AboutTheHotelSidePeek({
return (
{preamble}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
index 0667c30e1..af0acb0bd 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
@@ -18,7 +18,9 @@ export default async function AccessibilityAmenity({
return (
- {intl.formatMessage({ id: "About accessibility" })}
+ {intl.formatMessage({
+ defaultMessage: "About accessibility",
+ })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Breakfast/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Breakfast/index.tsx
index 0bd9c2ce2..9b42adee9 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Breakfast/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Breakfast/index.tsx
@@ -16,18 +16,26 @@ export default async function BreakfastAmenity({
const accordionContent =
hotelType === HotelTypeEnum.ScandicGo ? (
- {intl.formatMessage({ id: "All-day breakfast" })}
+
+ {intl.formatMessage({
+ defaultMessage: "All-day breakfast",
+ })}
+
) : (
)
return (
- {intl.formatMessage({ id: "Times" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Times",
+ })}
+
{intl.formatMessage(
- { id: "Check in from: {checkInTime}" },
+ {
+ defaultMessage: "Check in from: {checkInTime}",
+ },
{ checkInTime }
)}
{intl.formatMessage(
- { id: "Check out at latest: {checkOutTime}" },
+ {
+ defaultMessage: "Check out at latest: {checkOutTime}",
+ },
{ checkOutTime }
)}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
index d485ca2d3..5c1568ee9 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
@@ -17,7 +17,9 @@ export default async function ParkingAmenity({
return (
- {intl.formatMessage({ id: "About parking" })}
+ {intl.formatMessage({
+ defaultMessage: "About parking",
+ })}
)}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/index.tsx
index 6599b49e4..0e9ef9147 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/index.tsx
@@ -45,7 +45,10 @@ export default async function AmenitiesSidePeek({
const breakfastDetail = restaurant.openingDetails.find(
(details) =>
details.openingHours.name === "Breakfast" ||
- details.openingHours.name === intl.formatMessage({ id: "Breakfast" })
+ details.openingHours.name ===
+ intl.formatMessage({
+ defaultMessage: "Breakfast",
+ })
)
return breakfastDetail
})
@@ -54,7 +57,9 @@ export default async function AmenitiesSidePeek({
return (
- {intl.formatMessage({ id: "Creative spaces for meetings" })}
+ {intl.formatMessage({
+ defaultMessage: "Creative spaces for meetings",
+ })}
{primaryImage && (
@@ -84,7 +90,9 @@ export default async function MeetingsAndConferencesSidePeek({
color="burgundy"
appendToCurrentPath
>
- {intl.formatMessage({ id: "Read more" })}
+ {intl.formatMessage({
+ defaultMessage: "Read more",
+ })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/MeetingsAndConferences/util.ts b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/MeetingsAndConferences/util.ts
index c9bd177ea..5ccd5d0bc 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/MeetingsAndConferences/util.ts
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/MeetingsAndConferences/util.ts
@@ -28,12 +28,17 @@ export async function getRoomText(roomSizes: number[]) {
let roomText
if (largestRoom === smallestRoom) {
- roomText = intl.formatMessage({ id: "{value} m²" }, { value: largestRoom })
+ roomText = intl.formatMessage(
+ {
+ defaultMessage: "{value} m²",
+ },
+ { value: largestRoom }
+ )
} else if (smallestRoom != null && largestRoom) {
{
roomText = intl.formatMessage(
{
- id: "{smallest}–{largest} m²",
+ defaultMessage: "{smallest}–{largest} m²",
},
{ largest: largestRoom, smallest: smallestRoom }
)
@@ -50,14 +55,16 @@ export async function getSeatingText(roomSeating: number[]) {
let seatingText
if (biggestSeating === smallestSeating) {
seatingText = intl.formatMessage(
- { id: "{value, plural, one {# guest} other {# guests}}" },
+ {
+ defaultMessage: "{value, plural, one {# guest} other {# guests}}",
+ },
{ value: biggestSeating }
)
} else if (smallestSeating != null && biggestSeating) {
{
seatingText = intl.formatMessage(
{
- id: "{lowest}–{highest} guests",
+ defaultMessage: "{lowest}–{highest} guests",
},
{ highest: biggestSeating, lowest: smallestSeating }
)
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
index 80c725413..1eb811d2b 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
@@ -55,7 +55,9 @@ export default async function RestaurantBarItem({
- {intl.formatMessage({ id: "Opening hours" })}
+ {intl.formatMessage({
+ defaultMessage: "Opening hours",
+ })}
{openingDetails.map((details) => (
@@ -71,7 +73,9 @@ export default async function RestaurantBarItem({
- {intl.formatMessage({ id: "Menus" })}
+ {intl.formatMessage({
+ defaultMessage: "Menus",
+ })}
@@ -111,8 +115,12 @@ export default async function RestaurantBarItem({
trackingParams={{ restaurantName: name }}
>
{restaurantPage && !mainBody?.length
- ? intl.formatMessage({ id: "Read more" })
- : intl.formatMessage({ id: "Book a table online" })}
+ ? intl.formatMessage({
+ defaultMessage: "Read more",
+ })
+ : intl.formatMessage({
+ defaultMessage: "Book a table online",
+ })}
) : null}
{restaurantPage && mainBody?.length ? (
@@ -124,7 +132,12 @@ export default async function RestaurantBarItem({
href={`/${restaurant.nameInUrl}`}
appendToCurrentPath
>
- {intl.formatMessage({ id: "Discover {name}" }, { name: name })}
+ {intl.formatMessage(
+ {
+ defaultMessage: "Discover {name}",
+ },
+ { name: name }
+ )}
) : null}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/index.tsx
index 44fbd6fe3..3d9646a59 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/index.tsx
@@ -16,7 +16,9 @@ export default async function RestaurantBarSidePeek({
return (
{restaurants.map((restaurant) => (
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Room/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Room/index.tsx
index 67f9b0bc2..752e46a48 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Room/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Room/index.tsx
@@ -51,24 +51,28 @@ export default async function RoomSidePeek({
{intl.formatMessage(
{
- id: "Max. {max, plural, one {{range} guest} other {{range} guests}}",
+ defaultMessage:
+ "Max. {max, plural, one {{range} guest} other {{range} guests}}",
},
{
max: totalOccupancy.max,
range: totalOccupancy.range,
}
)}
- .{" "}
+ {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
+ {". "}
{roomSize.min === roomSize.max
? intl.formatMessage(
- { id: "{roomSize} m²" },
+ {
+ defaultMessage: "{roomSize} m²",
+ },
{
roomSize: roomSize.min,
}
)
: intl.formatMessage(
{
- id: "{roomSizeMin}–{roomSizeMax} m²",
+ defaultMessage: "{roomSizeMin}–{roomSizeMax} m²",
},
{
roomSizeMin: roomSize.min,
@@ -92,7 +96,11 @@ export default async function RoomSidePeek({
- {intl.formatMessage({ id: "Room amenities" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Room amenities",
+ })}
+
{room.roomFacilities
@@ -125,10 +133,18 @@ export default async function RoomSidePeek({
- {intl.formatMessage({ id: "Bed options" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Bed options",
+ })}
+
- {intl.formatMessage({ id: "Based on availability" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Based on availability",
+ })}
+
@@ -154,7 +170,9 @@ export default async function RoomSidePeek({
- {intl.formatMessage({ id: "Prices & availability" })}
+ {intl.formatMessage({
+ defaultMessage: "Prices & availability",
+ })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx
index 29667026b..f2109ea94 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx
@@ -33,14 +33,21 @@ export default async function Facility({ data }: FacilityProps) {
- {intl.formatMessage({ id: "Opening hours" })}
+ {intl.formatMessage({
+ defaultMessage: "Opening hours",
+ })}
{ordinaryOpeningTimes.alwaysOpen
- ? intl.formatMessage({ id: "Monday–Friday: Always open" })
+ ? intl.formatMessage({
+ defaultMessage: "Monday–Friday: Always open",
+ })
: intl.formatMessage(
- { id: "Monday–Friday: {openingTime}–{closingTime}" },
+ {
+ defaultMessage:
+ "Monday–Friday: {openingTime}–{closingTime}",
+ },
{
openingTime: ordinaryOpeningTimes.openingTime,
closingTime: ordinaryOpeningTimes.closingTime,
@@ -49,9 +56,14 @@ export default async function Facility({ data }: FacilityProps) {
{weekendOpeningTimes.alwaysOpen
- ? intl.formatMessage({ id: "Saturday–Sunday: Always open" })
+ ? intl.formatMessage({
+ defaultMessage: "Saturday–Sunday: Always open",
+ })
: intl.formatMessage(
- { id: "Saturday–Sunday: {openingTime}–{closingTime}" },
+ {
+ defaultMessage:
+ "Saturday–Sunday: {openingTime}–{closingTime}",
+ },
{
openingTime: weekendOpeningTimes.openingTime,
closingTime: weekendOpeningTimes.closingTime,
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx
index 7de759020..f5a4d1e06 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx
@@ -20,7 +20,9 @@ export default async function WellnessAndExerciseSidePeek({
return (
{healthFacilities.map((facility) => (
@@ -44,7 +46,9 @@ export default async function WellnessAndExerciseSidePeek({
color="burgundy"
appendToCurrentPath
>
- {intl.formatMessage({ id: "Show Gym & Wellness" })}
+ {intl.formatMessage({
+ defaultMessage: "Show Gym & Wellness",
+ })}
)}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/TabNavigation/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/TabNavigation/index.tsx
index 5aa6754c4..e2af0b539 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/TabNavigation/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/TabNavigation/index.tsx
@@ -40,11 +40,19 @@ export default function TabNavigation({
const tabLinks: { hash: HotelHashValues; text: string }[] = [
{
hash: HotelHashValues.overview,
- text: tabValues?.overview || intl.formatMessage({ id: "Overview" }),
+ text:
+ tabValues?.overview ||
+ intl.formatMessage({
+ defaultMessage: "Overview",
+ }),
},
{
hash: HotelHashValues.rooms,
- text: tabValues?.rooms || intl.formatMessage({ id: "Rooms" }),
+ text:
+ tabValues?.rooms ||
+ intl.formatMessage({
+ defaultMessage: "Rooms",
+ }),
},
...(hasRestaurants
? [
@@ -52,7 +60,9 @@ export default function TabNavigation({
hash: HotelHashValues.restaurant,
text:
tabValues?.restaurant_bar ||
- intl.formatMessage({ id: "Restaurant & Bar" }),
+ intl.formatMessage({
+ defaultMessage: "Restaurant & Bar",
+ }),
},
]
: []),
@@ -62,7 +72,9 @@ export default function TabNavigation({
hash: HotelHashValues.meetings,
text:
tabValues?.conferences_meetings ||
- intl.formatMessage({ id: "Meetings & Conferences" }),
+ intl.formatMessage({
+ defaultMessage: "Meetings & Conferences",
+ }),
},
]
: []),
@@ -72,7 +84,9 @@ export default function TabNavigation({
hash: HotelHashValues.wellness,
text:
tabValues?.health_wellness ||
- intl.formatMessage({ id: "Gym & Wellness" }),
+ intl.formatMessage({
+ defaultMessage: "Gym & Wellness",
+ }),
},
]
: []),
@@ -81,7 +95,10 @@ export default function TabNavigation({
{
hash: HotelHashValues.activities,
text:
- tabValues?.activities || intl.formatMessage({ id: "Activities" }),
+ tabValues?.activities ||
+ intl.formatMessage({
+ defaultMessage: "Activities",
+ }),
},
]
: []),
@@ -89,7 +106,11 @@ export default function TabNavigation({
? [
{
hash: HotelHashValues.faq,
- text: tabValues?.faq || intl.formatMessage({ id: "FAQ" }),
+ text:
+ tabValues?.faq ||
+ intl.formatMessage({
+ defaultMessage: "FAQ",
+ }),
},
]
: []),
diff --git a/apps/scandic-web/components/ContentType/HotelPage/utils.ts b/apps/scandic-web/components/ContentType/HotelPage/utils.ts
index 4aae154dc..718698ba6 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/utils.ts
+++ b/apps/scandic-web/components/ContentType/HotelPage/utils.ts
@@ -54,19 +54,33 @@ export function getTrackingHotelData(hotelData: HotelData["hotel"]) {
export function translateWellnessType(type: string, intl: IntlShape) {
switch (type) {
case HealthFacilitiesEnum.Gym:
- return intl.formatMessage({ id: "Gym" })
+ return intl.formatMessage({
+ defaultMessage: "Gym",
+ })
case HealthFacilitiesEnum.IndoorPool:
- return intl.formatMessage({ id: "Indoor pool" })
+ return intl.formatMessage({
+ defaultMessage: "Indoor pool",
+ })
case HealthFacilitiesEnum.Jacuzzi:
- return intl.formatMessage({ id: "Jacuzzi" })
+ return intl.formatMessage({
+ defaultMessage: "Jacuzzi",
+ })
case HealthFacilitiesEnum.OutdoorPool:
- return intl.formatMessage({ id: "Outdoor pool" })
+ return intl.formatMessage({
+ defaultMessage: "Outdoor pool",
+ })
case HealthFacilitiesEnum.Relax:
- return intl.formatMessage({ id: "Relax" })
+ return intl.formatMessage({
+ defaultMessage: "Relax",
+ })
case HealthFacilitiesEnum.Sauna:
- return intl.formatMessage({ id: "Sauna" })
+ return intl.formatMessage({
+ defaultMessage: "Sauna",
+ })
default:
console.warn(`Unsupported group given: ${type}`)
- return intl.formatMessage({ id: "Wellness" })
+ return intl.formatMessage({
+ defaultMessage: "Wellness",
+ })
}
}
diff --git a/apps/scandic-web/components/ContentType/HotelSubpage/AdditionalContent/Accessibility/index.tsx b/apps/scandic-web/components/ContentType/HotelSubpage/AdditionalContent/Accessibility/index.tsx
index d88827665..3f36455c3 100644
--- a/apps/scandic-web/components/ContentType/HotelSubpage/AdditionalContent/Accessibility/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelSubpage/AdditionalContent/Accessibility/index.tsx
@@ -27,7 +27,8 @@ export default function AccessibilityAdditionalContent({
{groupItem.details
- ? `${groupItem.name}: ${groupItem.details}`
+ ? // eslint-disable-next-line formatjs/no-literal-string-in-jsx
+ `${groupItem.name}: ${groupItem.details}`
: groupItem.name}
diff --git a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/MeetingsSidebar.tsx b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/MeetingsSidebar.tsx
index cf50792cf..25e078654 100644
--- a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/MeetingsSidebar.tsx
+++ b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/MeetingsSidebar.tsx
@@ -24,7 +24,11 @@ export default async function MeetingsSidebar({
- {intl.formatMessage({ id: "Contact us" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Contact us",
+ })}
+
{phoneNumber}
@@ -35,7 +39,7 @@ export default async function MeetingsSidebar({
>
{intl.formatMessage({
- id: "Price 0,16 €/min + local call charges",
+ defaultMessage: "Price 0,16 €/min + local call charges",
})}
diff --git a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/ParkingSidebar.tsx b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/ParkingSidebar.tsx
index 1a0ca78d5..33c39c542 100644
--- a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/ParkingSidebar.tsx
+++ b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/ParkingSidebar.tsx
@@ -19,7 +19,11 @@ export default async function ParkingSidebar({ hotel }: HotelSidebarProps) {
- {intl.formatMessage({ id: "Address" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Address",
+ })}
+
@@ -35,7 +39,11 @@ export default async function ParkingSidebar({ hotel }: HotelSidebarProps) {
- {intl.formatMessage({ id: "Contact us" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Contact us",
+ })}
+
@@ -48,7 +56,7 @@ export default async function ParkingSidebar({ hotel }: HotelSidebarProps) {
>
{intl.formatMessage({
- id: "Price 0,16 €/min + local call charges",
+ defaultMessage: "Price 0,16 €/min + local call charges",
})}
diff --git a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/RestaurantSidebar.tsx b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/RestaurantSidebar.tsx
index d507bb8b8..048eb1aff 100644
--- a/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/RestaurantSidebar.tsx
+++ b/apps/scandic-web/components/ContentType/HotelSubpage/Sidebar/RestaurantSidebar.tsx
@@ -30,7 +30,11 @@ export default async function RestaurantSidebar({
{openingDetails.length ? (
@@ -54,7 +60,11 @@ export default async function RestaurantSidebar({
{restaurant.menus.length ? (
- {intl.formatMessage({ id: "Menus" })}
+
+ {intl.formatMessage({
+ defaultMessage: "Menus",
+ })}
+