From bacdc669a31d195c27126aa8bb3bad719cdde96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 16 Oct 2025 15:04:58 +0000 Subject: [PATCH] Merged in fix/Lokalise-EN-edits-2025-10 (pull request #2962) Fix/Lokalise English manual updates * fix: update English keys Approved-by: Linus Flood --- apps/scandic-web/actions/editProfile.ts | 19 ++++++++++------- .../link-employment-error/page.tsx | 2 +- .../(protected)/sas-x-scandic/login/page.tsx | 2 +- .../sas-x-scandic/transfer/success/page.tsx | 4 ++-- .../Blocks/CampaignHotelListing/index.tsx | 2 +- .../MyPagesOverviewShortcuts/index.tsx | 2 +- .../Overview/MembershipOverviewCard/index.tsx | 4 ++-- .../ExpiringPointsSeeAllButton.tsx | 2 +- .../Points/PointsToSpendCard/index.tsx | 2 +- .../SAS/LinkAccountBanner/index.tsx | 21 +++---------------- .../DestinationCityPage/index.tsx | 4 ++-- .../DestinationCountryPage/index.tsx | 5 +---- .../DestinationPage/SeoFilters/index.tsx | 13 +++--------- .../HotelMapPage/Sidebar/index.tsx | 2 +- .../FindMyBooking/AdditionalInfoForm.tsx | 3 +-- .../Steps/DeliveryDetailsStep/index.tsx | 2 +- .../Ancillaries/AddedAncillaries/index.tsx | 2 +- .../MyStay/GuestDetails/index.tsx | 2 +- .../components/LocalCallCharges/index.tsx | 2 +- .../InnerCard/StatsSection/index.tsx | 2 +- .../Profile/ChangeNameDisclaimer/index.tsx | 2 +- .../components/MyPages/Profile/index.tsx | 2 +- .../TempDesignSystem/MeetingRoomCard/utils.ts | 2 +- .../utils/metadata/title/hotelPage.ts | 5 ++--- .../BookingConfirmation/Promos/index.tsx | 2 +- .../BookingConfirmation/Rooms/Room/index.tsx | 2 +- .../FormContent/RewardNight/index.tsx | 2 +- .../BookingWidget/DatePicker/index.tsx | 2 +- .../MobileToggleButton/index.tsx | 4 ++-- .../EnterDetails/Payment/PaymentClient.tsx | 4 ++-- .../PriceChangeSummary/index.tsx | 2 +- .../EnterDetails/PriceChangeDialog/index.tsx | 2 +- .../Filters/FilterAndSortModal/index.tsx | 2 +- .../SelectHotel/HotelSorter/index.tsx | 2 +- .../RoomListItem/Details/RoomSize.tsx | 2 +- .../RoomListItem/RoomImage/index.tsx | 2 +- .../Form/SelectPaymentMethod/index.tsx | 2 +- 37 files changed, 58 insertions(+), 80 deletions(-) diff --git a/apps/scandic-web/actions/editProfile.ts b/apps/scandic-web/actions/editProfile.ts index 848ca2d7c..3bea2e610 100644 --- a/apps/scandic-web/actions/editProfile.ts +++ b/apps/scandic-web/actions/editProfile.ts @@ -63,7 +63,8 @@ export const editProfile = protectedServerActionProcedure message: issue.message, })), message: intl.formatMessage({ - defaultMessage: "An error occured when trying to update profile.", + defaultMessage: + "An error occurred when trying to update your profile.", }), status: Status.error, } @@ -83,7 +84,8 @@ export const editProfile = protectedServerActionProcedure data: input, issues: [], message: intl.formatMessage({ - defaultMessage: "An error occured when trying to update profile.", + defaultMessage: + "An error occurred when trying to update your profile.", }), status: Status.error, } @@ -131,8 +133,9 @@ export const editProfile = protectedServerActionProcedure } if (payload.data[typedKey] !== profile[typedKey]) { - // @ts-ignore - body[typedKey] = payload.data[typedKey] + if (typedKey === "language") { + body[typedKey] = payload.data[typedKey] + } else body[typedKey] = payload.data[typedKey] } }) @@ -176,7 +179,8 @@ export const editProfile = protectedServerActionProcedure data: input, issues: [], message: intl.formatMessage({ - defaultMessage: "An error occured when trying to update profile.", + defaultMessage: + "An error occurred when trying to update your profile.", }), status: Status.error, } @@ -184,7 +188,7 @@ export const editProfile = protectedServerActionProcedure const json = await apiResponse.json() if (json.errors?.length) { - json.errors.forEach((error: any) => { + json.errors.forEach((error: unknown) => { logger.warn( "editProfile api patch errors (not aborting)", JSON.stringify({ @@ -212,7 +216,8 @@ export const editProfile = protectedServerActionProcedure message: issue.message, })), message: intl.formatMessage({ - defaultMessage: "An error occured when trying to update profile.", + defaultMessage: + "An error occurred when trying to update your profile.", }), status: Status.error, } diff --git a/apps/scandic-web/app/[lang]/(no-layout)/(protected)/link-employment-error/page.tsx b/apps/scandic-web/app/[lang]/(no-layout)/(protected)/link-employment-error/page.tsx index 44a8aa17e..c8f116c32 100644 --- a/apps/scandic-web/app/[lang]/(no-layout)/(protected)/link-employment-error/page.tsx +++ b/apps/scandic-web/app/[lang]/(no-layout)/(protected)/link-employment-error/page.tsx @@ -106,7 +106,7 @@ const getErrorContent = (error: string | null, intl: IntlShape) => { }), message: intl.formatMessage({ defaultMessage: - "We could not connect your accounts to give you access. Please contact us and we'll help you resolve this issue.", + "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/login/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/login/page.tsx index 071a4f3f6..a4c71e0c2 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 @@ -59,7 +59,7 @@ export default async function SASxScandicLoginPage( }), unlink: intl.formatMessage({ defaultMessage: - "Log in to your SAS Eurobonus account to confirm account unlinking.", + "Log in to your SAS EuroBonus account to confirm account unlinking.", }), transfer: intl.formatMessage({ defaultMessage: diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/transfer/success/page.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/transfer/success/page.tsx index c454f957c..20a5bc715 100644 --- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/transfer/success/page.tsx +++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/transfer/success/page.tsx @@ -128,7 +128,7 @@ async function TransactionCard({

{intl.formatMessage({ - defaultMessage: "You have enough points for a bonus night!", + defaultMessage: "You have enough points for a reward night!", })}

@@ -136,7 +136,7 @@ async function TransactionCard({

{intl.formatMessage({ defaultMessage: - "Bonus Nights range from 10 000 - 80 000 points. Book your next stay with us today!", + "Redeem your points for cozy stays, delicious meals at our restaurants, or hotel extras to elevate your stay!", })}

diff --git a/apps/scandic-web/components/Blocks/CampaignHotelListing/index.tsx b/apps/scandic-web/components/Blocks/CampaignHotelListing/index.tsx index 819b9eb19..e175a5872 100644 --- a/apps/scandic-web/components/Blocks/CampaignHotelListing/index.tsx +++ b/apps/scandic-web/components/Blocks/CampaignHotelListing/index.tsx @@ -52,7 +52,7 @@ export default async function CampaignHotelListing({ }, { label: intl.formatMessage({ - defaultMessage: "TripAdvisor rating", + defaultMessage: "Tripadvisor rating", }), value: HotelSortOption.TripAdvisorRating, }, diff --git a/apps/scandic-web/components/Blocks/DynamicContent/MyPagesOverviewShortcuts/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/MyPagesOverviewShortcuts/index.tsx index f0b324f8e..73aef242d 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/MyPagesOverviewShortcuts/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/MyPagesOverviewShortcuts/index.tsx @@ -103,7 +103,7 @@ export default async function MyPagesOverviewShortcuts() {
{intl.formatMessage( { - defaultMessage: "LEVEL {level}", + defaultMessage: "Level {level}", }, { level: membershipLevels[user.membership.membershipLevel] } )} @@ -79,7 +79,7 @@ export default async function MembershipOverviewCard({

{intl.formatMessage({ - defaultMessage: "POINTS TO SPEND", + defaultMessage: "Points to spend", })}

diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/ExpiringPointsSeeAllButton.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/ExpiringPointsSeeAllButton.tsx index 74204e9dc..3396b56c3 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/ExpiringPointsSeeAllButton.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/ExpiringPointsSeeAllButton.tsx @@ -36,7 +36,7 @@ export default function ExpiringPointsSeeAllButton({ setIsOpen(false)} > diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/index.tsx index f917f6939..934a7431a 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointsToSpendCard/index.tsx @@ -66,7 +66,7 @@ export default async function PointsToSpendCard({ {intl.formatMessage({ - defaultMessage: "POINTS", + defaultMessage: "Points", })} diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx index 55f95faf5..c1c842f2b 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx @@ -27,24 +27,9 @@ export default async function SASLinkAccountBanner( return null } - function match() { - return ( - - {intl.formatMessage({ - defaultMessage: "MATCH", - })} - - ) - } - - const headingText = intl.formatMessage( - { - defaultMessage: "A MADE IN HEAVEN", - }, - { - match, - } - ) + const headingText = intl.formatMessage({ + defaultMessage: "Earn flights with nights", + }) const buttonText = props.link?.text || diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx index 2efbe0b7f..4abfe1185 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx @@ -82,7 +82,7 @@ export default async function DestinationCityPage({ }, { label: intl.formatMessage({ - defaultMessage: "TripAdvisor rating", + defaultMessage: "Tripadvisor rating", }), value: HotelSortOption.TripAdvisorRating, }, @@ -118,7 +118,7 @@ export default async function DestinationCityPage({
- +
diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/DeliveryDetailsStep/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/DeliveryDetailsStep/index.tsx index ac2a43ebf..79e5bf0de 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/DeliveryDetailsStep/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/DeliveryDetailsStep/index.tsx @@ -34,7 +34,7 @@ export default function DeliveryMethodStep() {

{intl.formatMessage({ defaultMessage: - "All add-ons are delivered at the same time. Changes to delivery times will affect earlier add-ons.", + "All extras are delivered together. Changes to delivery times will affect previously ordered extras.", })}

diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx index 0842b2d68..1a94462ec 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx @@ -41,7 +41,7 @@ export function AddedAncillaries({
{intl.formatMessage({ - defaultMessage: "My Add-on's", + defaultMessage: "My extras", })} diff --git a/apps/scandic-web/components/HotelReservation/MyStay/GuestDetails/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/GuestDetails/index.tsx index b7a5eed24..713304e37 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/GuestDetails/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/GuestDetails/index.tsx @@ -140,7 +140,7 @@ export default function GuestDetails({

{intl.formatMessage({ - defaultMessage: "Your member tier", + defaultMessage: "Your member level", })}

diff --git a/apps/scandic-web/components/LocalCallCharges/index.tsx b/apps/scandic-web/components/LocalCallCharges/index.tsx index ef96c3a94..896033cfd 100644 --- a/apps/scandic-web/components/LocalCallCharges/index.tsx +++ b/apps/scandic-web/components/LocalCallCharges/index.tsx @@ -17,7 +17,7 @@ export default async function LocalCallCharges({

{intl.formatMessage({ - defaultMessage: "Price 0,16 €/min + local call charges", + defaultMessage: "Price: €0.16/min + local call charges", })}

diff --git a/apps/scandic-web/components/MyPages/LevelProgressCard/InnerCard/StatsSection/index.tsx b/apps/scandic-web/components/MyPages/LevelProgressCard/InnerCard/StatsSection/index.tsx index 2c8e6fcb8..b8fe23cb9 100644 --- a/apps/scandic-web/components/MyPages/LevelProgressCard/InnerCard/StatsSection/index.tsx +++ b/apps/scandic-web/components/MyPages/LevelProgressCard/InnerCard/StatsSection/index.tsx @@ -23,7 +23,7 @@ export default async function StatsSection({ {intl.formatMessage({ - defaultMessage: "Points Earned", + defaultMessage: "Points earned", })} diff --git a/apps/scandic-web/components/MyPages/Profile/ChangeNameDisclaimer/index.tsx b/apps/scandic-web/components/MyPages/Profile/ChangeNameDisclaimer/index.tsx index 677610daa..0519e9551 100644 --- a/apps/scandic-web/components/MyPages/Profile/ChangeNameDisclaimer/index.tsx +++ b/apps/scandic-web/components/MyPages/Profile/ChangeNameDisclaimer/index.tsx @@ -19,7 +19,7 @@ export default function ChangeNameDisclaimer() { {intl.formatMessage( { defaultMessage: - "Need to change your name? Please get in touch with member support at +46 8 517 517 00 or member@scandichotels.com.", + "Need to update your name? Please get in touch with member service at +46 8 517 517 00 or member@scandichotels.com.", }, { phone([str]) { diff --git a/apps/scandic-web/components/MyPages/Profile/index.tsx b/apps/scandic-web/components/MyPages/Profile/index.tsx index b110ba3ac..abb62d969 100644 --- a/apps/scandic-web/components/MyPages/Profile/index.tsx +++ b/apps/scandic-web/components/MyPages/Profile/index.tsx @@ -100,7 +100,7 @@ export default async function Profile() {

{intl.formatMessage({ - defaultMessage: "Date of Birth", + defaultMessage: "Date of birth", })}

diff --git a/apps/scandic-web/components/TempDesignSystem/MeetingRoomCard/utils.ts b/apps/scandic-web/components/TempDesignSystem/MeetingRoomCard/utils.ts index 292c2deb5..7bb760195 100644 --- a/apps/scandic-web/components/TempDesignSystem/MeetingRoomCard/utils.ts +++ b/apps/scandic-web/components/TempDesignSystem/MeetingRoomCard/utils.ts @@ -70,7 +70,7 @@ export function translateSeatingType(type: string, intl: IntlShape) { }) case SeatingType.Theatre: return intl.formatMessage({ - defaultMessage: "Theatre", + defaultMessage: "Theater", }) case SeatingType.UShape: return intl.formatMessage({ diff --git a/apps/scandic-web/utils/metadata/title/hotelPage.ts b/apps/scandic-web/utils/metadata/title/hotelPage.ts index afd1c3532..89bdc44ac 100644 --- a/apps/scandic-web/utils/metadata/title/hotelPage.ts +++ b/apps/scandic-web/utils/metadata/title/hotelPage.ts @@ -83,13 +83,12 @@ async function getSubpageTitle( case additionalHotelData.hotelSpecialNeeds?.nameInUrl: const accessibilityTitleLong = intl.formatMessage( { - defaultMessage: - "Accessibility information for {hotelName} in {destination}", + defaultMessage: "Accessibility at {hotelName} in {destination}", }, { hotelName, destination } ) const accessibilityTitleShort = intl.formatMessage( - { defaultMessage: "Accessibility information for {hotelName}" }, + { defaultMessage: "Accessibility at {hotelName}" }, { hotelName } ) diff --git a/packages/booking-flow/lib/components/BookingConfirmation/Promos/index.tsx b/packages/booking-flow/lib/components/BookingConfirmation/Promos/index.tsx index 3962bdd73..98e744b51 100644 --- a/packages/booking-flow/lib/components/BookingConfirmation/Promos/index.tsx +++ b/packages/booking-flow/lib/components/BookingConfirmation/Promos/index.tsx @@ -37,7 +37,7 @@ export function Promos({ booking }: PromosProps) {
diff --git a/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/RewardNight/index.tsx b/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/RewardNight/index.tsx index e659dcd07..7dca66775 100644 --- a/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/RewardNight/index.tsx +++ b/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/RewardNight/index.tsx @@ -155,7 +155,7 @@ function getRewardMessage(config: BookingFlowConfig, intl: IntlShape): string { switch (config.variant) { case "partner-sas": return intl.formatMessage({ - defaultMessage: "EuroBonus Points", + defaultMessage: "EuroBonus points", }) case "scandic": return intl.formatMessage({ diff --git a/packages/booking-flow/lib/components/BookingWidget/DatePicker/index.tsx b/packages/booking-flow/lib/components/BookingWidget/DatePicker/index.tsx index ade3cc8f0..0ffc6dc81 100644 --- a/packages/booking-flow/lib/components/BookingWidget/DatePicker/index.tsx +++ b/packages/booking-flow/lib/components/BookingWidget/DatePicker/index.tsx @@ -153,7 +153,7 @@ export default function DatePickerForm({ name = "date" }: DatePickerFormProps) { {intl.formatMessage( { - defaultMessage: "{selectedFromDate} - {selectedToDate}", + defaultMessage: "{selectedFromDate} – {selectedToDate}", }, { selectedFromDate, diff --git a/packages/booking-flow/lib/components/BookingWidget/MobileToggleButton/index.tsx b/packages/booking-flow/lib/components/BookingWidget/MobileToggleButton/index.tsx index c2e3d957c..4388c78b8 100644 --- a/packages/booking-flow/lib/components/BookingWidget/MobileToggleButton/index.tsx +++ b/packages/booking-flow/lib/components/BookingWidget/MobileToggleButton/index.tsx @@ -126,7 +126,7 @@ export default function MobileToggleButton({ {intl.formatMessage( { - defaultMessage: "{selectedFromDate} - {selectedToDate}", + defaultMessage: "{selectedFromDate} – {selectedToDate}", }, { selectedFromDate, @@ -153,7 +153,7 @@ export default function MobileToggleButton({ {intl.formatMessage( { defaultMessage: - "{selectedFromDate} - {selectedToDate} ({totalNights}) {details}", + "{selectedFromDate} – {selectedToDate} ({totalNights}) {details}", }, { selectedFromDate, diff --git a/packages/booking-flow/lib/components/EnterDetails/Payment/PaymentClient.tsx b/packages/booking-flow/lib/components/EnterDetails/Payment/PaymentClient.tsx index b5e5e0e67..9066e27df 100644 --- a/packages/booking-flow/lib/components/EnterDetails/Payment/PaymentClient.tsx +++ b/packages/booking-flow/lib/components/EnterDetails/Payment/PaymentClient.tsx @@ -591,7 +591,7 @@ export default function PaymentClient({ {intl.formatMessage({ - defaultMessage: "MY SAVED CARDS", + defaultMessage: "My saved cards", })} @@ -612,7 +612,7 @@ export default function PaymentClient({ {intl.formatMessage({ - defaultMessage: "OTHER PAYMENT METHODS", + defaultMessage: "Other payment methods", })} diff --git a/packages/booking-flow/lib/components/EnterDetails/PriceChangeDialog/PriceChangeSummary/index.tsx b/packages/booking-flow/lib/components/EnterDetails/PriceChangeDialog/PriceChangeSummary/index.tsx index 30a8147ce..e343f0fe6 100644 --- a/packages/booking-flow/lib/components/EnterDetails/PriceChangeDialog/PriceChangeSummary/index.tsx +++ b/packages/booking-flow/lib/components/EnterDetails/PriceChangeDialog/PriceChangeSummary/index.tsx @@ -203,7 +203,7 @@ export default function PriceChangeSummary({