fix: copy fixes for English labels
This commit is contained in:
@@ -73,7 +73,7 @@ export default function MapCard({ hotelName, pois }: MapCardProps) {
|
||||
<Button theme="base" intent="secondary" size="small" fullWidth asChild>
|
||||
<Link href={mapUrl} scroll={true} onClick={trackHotelMapClick}>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Explore nearby",
|
||||
defaultMessage: "See map",
|
||||
})}
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
@@ -37,7 +37,7 @@ export default function ChildInfoSelector({
|
||||
defaultMessage: "Age",
|
||||
})
|
||||
const bedLabel = intl.formatMessage({
|
||||
defaultMessage: "Bed",
|
||||
defaultMessage: "Bed preference",
|
||||
})
|
||||
const errorMessage = intl.formatMessage({
|
||||
defaultMessage: "Child age is required",
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useIntl } from "react-intl"
|
||||
|
||||
import { myStay } from "@/constants/routes/myStay"
|
||||
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import useLang from "@/hooks/useLang"
|
||||
@@ -29,19 +28,10 @@ export default function Header({
|
||||
const intl = useIntl()
|
||||
const lang = useLang()
|
||||
|
||||
const text = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
"Thank you for booking with us! We look forward to welcoming you and hope you have a pleasant stay. If you have any questions or need to make changes to your reservation, please <emailLink>contact us.</emailLink>",
|
||||
},
|
||||
{
|
||||
emailLink: (str) => (
|
||||
<Link color="burgundy" href="#" textDecoration="underline">
|
||||
{str}
|
||||
</Link>
|
||||
),
|
||||
}
|
||||
)
|
||||
const text = intl.formatMessage({
|
||||
defaultMessage:
|
||||
"Thank you for your booking! We look forward to welcoming you and hope you have a pleasant stay.",
|
||||
})
|
||||
|
||||
const event: EventAttributes = {
|
||||
busyStatus: "FREE",
|
||||
|
||||
@@ -175,7 +175,7 @@ export default function Room({
|
||||
<li className={styles.listItem}>
|
||||
<Body color="uiTextPlaceholder">
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Rebooking",
|
||||
defaultMessage: "Change or cancel",
|
||||
})}
|
||||
</Body>
|
||||
<Body color="uiTextHighContrast">
|
||||
|
||||
@@ -59,7 +59,7 @@ export default function ConfirmBooking({
|
||||
>
|
||||
<MaterialIcon icon="info" size={20} color="CurrentColor" />
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "How does it work",
|
||||
defaultMessage: "How it works",
|
||||
})}
|
||||
</Button>
|
||||
|
||||
|
||||
@@ -84,8 +84,7 @@ export default function JoinScandicFriendsCard({
|
||||
</Caption>
|
||||
<Caption color="uiTextHighContrast">
|
||||
{intl.formatMessage({
|
||||
defaultMessage:
|
||||
"I promise to join Scandic Friends before checking in",
|
||||
defaultMessage: "Join Scandic Friends",
|
||||
})}
|
||||
</Caption>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function TermsAndConditions() {
|
||||
{intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
"By paying with any of the payment methods available, I accept the terms for this booking and the general <termsAndConditionsLink>Terms & Conditions</termsAndConditionsLink>, and understand that Scandic will process my personal data for this booking in accordance with <privacyPolicyLink>Scandic's Privacy policy</privacyPolicyLink>. I also accept that Scandic require a valid credit card during my visit in case anything is left unpaid.",
|
||||
"I accept the terms for this booking and the general <termsAndConditionsLink>Terms & Conditions</termsAndConditionsLink>, and understand that Scandic will process my personal data for this booking in accordance with <privacyPolicyLink>Scandic's Privacy policy</privacyPolicyLink>. I also accept that Scandic requires a valid payment card during my visit in case anything is left unpaid.",
|
||||
},
|
||||
{
|
||||
termsAndConditionsLink: (str) => (
|
||||
|
||||
@@ -57,8 +57,8 @@ export default function Multiroom() {
|
||||
|
||||
{room.bedTypes ? (
|
||||
<Section
|
||||
header={intl.formatMessage({ defaultMessage: "Select bed" })}
|
||||
label={intl.formatMessage({ defaultMessage: "Request bedtype" })}
|
||||
header={intl.formatMessage({ defaultMessage: "Bed preference" })}
|
||||
label={intl.formatMessage({ defaultMessage: "Preferred bed type" })}
|
||||
additionalInfo={bedTypeInfoText}
|
||||
step={StepEnum.selectBed}
|
||||
>
|
||||
@@ -69,7 +69,7 @@ export default function Multiroom() {
|
||||
{showBreakfastStep ? (
|
||||
<Section
|
||||
header={intl.formatMessage({
|
||||
defaultMessage: "Food options",
|
||||
defaultMessage: "Breakfast",
|
||||
})}
|
||||
label={intl.formatMessage({
|
||||
defaultMessage: "Select breakfast options",
|
||||
@@ -86,7 +86,7 @@ export default function Multiroom() {
|
||||
})}
|
||||
step={StepEnum.details}
|
||||
label={intl.formatMessage({
|
||||
defaultMessage: "Enter your details",
|
||||
defaultMessage: "Contact details",
|
||||
})}
|
||||
>
|
||||
<Details />
|
||||
|
||||
@@ -63,8 +63,8 @@ export default function RoomOne({ user }: { user: SafeUser }) {
|
||||
|
||||
{room.bedTypes ? (
|
||||
<Section
|
||||
header={intl.formatMessage({ defaultMessage: "Select bed" })}
|
||||
label={intl.formatMessage({ defaultMessage: "Request bedtype" })}
|
||||
header={intl.formatMessage({ defaultMessage: "Bed preference" })}
|
||||
label={intl.formatMessage({ defaultMessage: "Preferred bed type" })}
|
||||
additionalInfo={bedTypeInfoText}
|
||||
step={StepEnum.selectBed}
|
||||
>
|
||||
@@ -75,7 +75,7 @@ export default function RoomOne({ user }: { user: SafeUser }) {
|
||||
{showBreakfastStep ? (
|
||||
<Section
|
||||
header={intl.formatMessage({
|
||||
defaultMessage: "Food options",
|
||||
defaultMessage: "Breakfast",
|
||||
})}
|
||||
label={intl.formatMessage({
|
||||
defaultMessage: "Select breakfast options",
|
||||
@@ -92,7 +92,7 @@ export default function RoomOne({ user }: { user: SafeUser }) {
|
||||
})}
|
||||
step={StepEnum.details}
|
||||
label={intl.formatMessage({
|
||||
defaultMessage: "Enter your details",
|
||||
defaultMessage: "Contact details",
|
||||
})}
|
||||
>
|
||||
<Details user={user} />
|
||||
|
||||
@@ -53,7 +53,7 @@ export default function SelectedRoom() {
|
||||
>
|
||||
<h2>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Your room",
|
||||
defaultMessage: "Room",
|
||||
})}
|
||||
</h2>
|
||||
</Footnote>
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function AdditionalInfoForm({
|
||||
<div>
|
||||
<Title level="h2" as="h3">
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "One last step",
|
||||
defaultMessage: "Find your booking",
|
||||
})}
|
||||
</Title>
|
||||
<Body>
|
||||
|
||||
@@ -75,7 +75,7 @@ export default function FindMyBooking() {
|
||||
<Body>
|
||||
{intl.formatMessage({
|
||||
defaultMessage:
|
||||
"View and manage your stay made on Scandic's website",
|
||||
"View and manage your booking made via our website or app.",
|
||||
})}
|
||||
</Body>
|
||||
</div>
|
||||
|
||||
@@ -148,7 +148,7 @@ export default function Details({ booking, user }: DetailsProps) {
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<p>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Total points",
|
||||
defaultMessage: "My total points",
|
||||
})}
|
||||
</p>
|
||||
</Typography>
|
||||
|
||||
@@ -26,7 +26,7 @@ export default async function Footer({ booking, room }: FooterProps) {
|
||||
<Typography variant="Body/Supporting text (caption)/smRegular">
|
||||
<dt>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Reference number",
|
||||
defaultMessage: "Booking number",
|
||||
})}
|
||||
</dt>
|
||||
</Typography>
|
||||
|
||||
@@ -117,7 +117,7 @@ export default function Confirmation({
|
||||
defaultMessage: "Confirm date change",
|
||||
})
|
||||
const totalDueMsg = intl.formatMessage({
|
||||
defaultMessage: "Total due",
|
||||
defaultMessage: "Pay at the hotel",
|
||||
})
|
||||
const adultsText = intl.formatMessage(
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ export default function MultiRoom({ booking, roomNr, user }: MultiRoomProps) {
|
||||
) : (
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Reference",
|
||||
defaultMessage: "Booking number",
|
||||
})}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{":"}
|
||||
|
||||
@@ -175,7 +175,7 @@ export default function SingleRoom({ bedType, image, user }: RoomProps) {
|
||||
<Typography variant="Body/Paragraph/mdBold">
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Reference",
|
||||
defaultMessage: "Booking number",
|
||||
})}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{":"}
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function BookingCodeFilter() {
|
||||
const bookingCodeFilterItems = [
|
||||
{
|
||||
label: intl.formatMessage({
|
||||
defaultMessage: "Discounted rooms",
|
||||
defaultMessage: "Booking code rates",
|
||||
}),
|
||||
value: BookingCodeFilterEnum.Discounted,
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ export default function BookingCodeFilter() {
|
||||
const bookingCodeFilterItems = [
|
||||
{
|
||||
label: intl.formatMessage({
|
||||
defaultMessage: "Discounted rooms",
|
||||
defaultMessage: "Booking code rates",
|
||||
}),
|
||||
value: BookingCodeFilterEnum.Discounted,
|
||||
},
|
||||
@@ -44,7 +44,7 @@ export default function BookingCodeFilter() {
|
||||
},
|
||||
{
|
||||
label: intl.formatMessage({
|
||||
defaultMessage: "All rooms",
|
||||
defaultMessage: "All rates",
|
||||
}),
|
||||
value: BookingCodeFilterEnum.All,
|
||||
},
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function RoomPackageFilterModal() {
|
||||
return (
|
||||
<DialogTrigger isOpen={isOpen} onOpenChange={setIsOpen}>
|
||||
<ChipButton variant="Outlined">
|
||||
{intl.formatMessage({ defaultMessage: "Room preferences" })}
|
||||
{intl.formatMessage({ defaultMessage: "Special needs" })}
|
||||
<MaterialIcon
|
||||
icon="keyboard_arrow_down"
|
||||
size={20}
|
||||
@@ -36,7 +36,7 @@ export default function RoomPackageFilterModal() {
|
||||
<div className={styles.header}>
|
||||
<Typography variant="Title/Subtitle/md">
|
||||
<h3>
|
||||
{intl.formatMessage({ defaultMessage: "Room preferences" })}
|
||||
{intl.formatMessage({ defaultMessage: "Special needs" })}
|
||||
</h3>
|
||||
</Typography>
|
||||
<Button variant="Icon" onPress={() => setIsOpen(false)}>
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function RoomPackageFilterPopover() {
|
||||
return (
|
||||
<DialogTrigger isOpen={isOpen} onOpenChange={setIsOpen}>
|
||||
<ChipButton variant="Outlined">
|
||||
{intl.formatMessage({ defaultMessage: "Room preferences" })}
|
||||
{intl.formatMessage({ defaultMessage: "Special needs" })}
|
||||
<MaterialIcon
|
||||
icon="keyboard_arrow_down"
|
||||
size={20}
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function BreakfastMessage({
|
||||
defaultMessage: "Breakfast is included.",
|
||||
}),
|
||||
notIncluded: intl.formatMessage({
|
||||
defaultMessage: "Breakfast selection in next step.",
|
||||
defaultMessage: "Breakfast excluded, add in next step.",
|
||||
}),
|
||||
noSelection: intl.formatMessage({
|
||||
defaultMessage: "Select a rate",
|
||||
|
||||
@@ -160,7 +160,7 @@ export default function BookedRoomSidePeek({
|
||||
) : (
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Reference",
|
||||
defaultMessage: "Booking number",
|
||||
})}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{":"}
|
||||
|
||||
@@ -163,7 +163,8 @@ export function getErrorMessage(intl: IntlShape, errorCode?: string) {
|
||||
})
|
||||
case bookingWidgetErrors.CODE_VOUCHER_REWARD_NIGHT_UNAVAILABLE:
|
||||
return intl.formatMessage({
|
||||
defaultMessage: "Code and voucher is not available with reward night.",
|
||||
defaultMessage:
|
||||
"Reward nights can't be combined with codes or vouchers.",
|
||||
})
|
||||
default:
|
||||
console.warn("Error code not supported:", errorCode)
|
||||
|
||||
Reference in New Issue
Block a user