Merged in feat/lokalise-rebuild (pull request #2993)
Feat/lokalise rebuild * chore(lokalise): update translation ids * chore(lokalise): easier to switch between projects * chore(lokalise): update translation ids * . * . * . * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * chore(lokalise): new translations * merge * switch to errors for missing id's * merge * sync translations Approved-by: Linus Flood
This commit is contained in:
@@ -58,6 +58,7 @@ export default function MemberPriceModal() {
|
||||
<MagicWandIcon width="265px" />
|
||||
<Title as="h3" level="h1" textTransform="regular">
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.memberPriceModal.title",
|
||||
defaultMessage: "Member room price activated",
|
||||
})}
|
||||
</Title>
|
||||
@@ -66,6 +67,7 @@ export default function MemberPriceModal() {
|
||||
<span className={styles.newPrice}>
|
||||
<Body>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.memberPriceModal.newPriceLabel",
|
||||
defaultMessage: "The new price is",
|
||||
})}
|
||||
</Body>
|
||||
@@ -81,6 +83,7 @@ export default function MemberPriceModal() {
|
||||
</div>
|
||||
<Button intent="primary" theme="base" onClick={() => setIsOpen(false)}>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.memberPriceModal.okButtonLabel",
|
||||
defaultMessage: "OK",
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@@ -44,12 +44,14 @@ export default function JoinScandicFriendsCard({
|
||||
<span>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{`${intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.title",
|
||||
defaultMessage: "Get the member room price",
|
||||
})}: `}
|
||||
</span>
|
||||
<span className={styles.price}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.priceForRoom",
|
||||
defaultMessage: "{amount} for room {roomNr}",
|
||||
},
|
||||
{
|
||||
@@ -73,6 +75,7 @@ export default function JoinScandicFriendsCard({
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<div>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.joinBeforeCheckinCheckboxLabel",
|
||||
defaultMessage: "Join Scandic Friends before check-in",
|
||||
})}
|
||||
</div>
|
||||
@@ -83,6 +86,7 @@ export default function JoinScandicFriendsCard({
|
||||
<Footnote color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.terms",
|
||||
defaultMessage:
|
||||
"By joining you accept the <termsAndConditionsLink>Terms and Conditions</termsAndConditionsLink>. The Scandic Friends Membership is valid until further notice, but can at any time be terminated by contacting Scandic Customer Service.",
|
||||
},
|
||||
|
||||
@@ -49,6 +49,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<h2 className={styles.priceContainer}>
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.title",
|
||||
defaultMessage: "Get the member room price",
|
||||
})}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
@@ -57,6 +58,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<span className={styles.price}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.priceForRoom",
|
||||
defaultMessage: "{amount} for room {roomNr}",
|
||||
},
|
||||
{
|
||||
@@ -77,6 +79,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<div>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.joinBeforeCheckinCheckboxLabel",
|
||||
defaultMessage: "Join Scandic Friends before check-in",
|
||||
})}
|
||||
</div>
|
||||
@@ -88,6 +91,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
registerOptions={{ onBlur: updateDetailsStore }}
|
||||
disabled={Boolean(joinValue)}
|
||||
label={intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.membershipIdLabel",
|
||||
defaultMessage: "Already a member? Membership ID",
|
||||
})}
|
||||
/>
|
||||
@@ -97,6 +101,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<Footnote color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.terms",
|
||||
defaultMessage:
|
||||
"By joining you accept the <termsAndConditionsLink>Terms and Conditions</termsAndConditionsLink>. The Scandic Friends Membership is valid until further notice, but can at any time be terminated by contacting Scandic Customer Service.",
|
||||
},
|
||||
|
||||
@@ -184,11 +184,13 @@ export default function Details() {
|
||||
className={styles.fullWidth}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.roomInfo.title",
|
||||
defaultMessage: "Guest information",
|
||||
})}
|
||||
</Footnote>
|
||||
<BookingFlowInput
|
||||
label={intl.formatMessage({
|
||||
id: "common.firstName",
|
||||
defaultMessage: "First name",
|
||||
})}
|
||||
maxLength={30}
|
||||
@@ -201,6 +203,7 @@ export default function Details() {
|
||||
/>
|
||||
<BookingFlowInput
|
||||
label={intl.formatMessage({
|
||||
id: "common.lastName",
|
||||
defaultMessage: "Last name",
|
||||
})}
|
||||
maxLength={30}
|
||||
@@ -220,6 +223,7 @@ export default function Details() {
|
||||
errors.countryCode?.message
|
||||
)}
|
||||
label={intl.formatMessage({
|
||||
id: "common.country",
|
||||
defaultMessage: "Country",
|
||||
})}
|
||||
lang={lang}
|
||||
@@ -229,6 +233,7 @@ export default function Details() {
|
||||
<BookingFlowInput
|
||||
className={styles.fullWidth}
|
||||
label={intl.formatMessage({
|
||||
id: "common.emailAddress",
|
||||
defaultMessage: "Email address",
|
||||
})}
|
||||
name="email"
|
||||
@@ -236,6 +241,7 @@ export default function Details() {
|
||||
/>
|
||||
<Phone
|
||||
countryLabel={intl.formatMessage({
|
||||
id: "common.countryCode",
|
||||
defaultMessage: "Country code",
|
||||
})}
|
||||
countriesWithTranslatedName={getFormattedCountryList(intl)}
|
||||
@@ -247,6 +253,7 @@ export default function Details() {
|
||||
)}
|
||||
className={styles.fullWidth}
|
||||
label={intl.formatMessage({
|
||||
id: "common.phoneNumber",
|
||||
defaultMessage: "Phone number",
|
||||
})}
|
||||
name="phoneNumber"
|
||||
@@ -256,6 +263,7 @@ export default function Details() {
|
||||
<BookingFlowInput
|
||||
className={styles.fullWidth}
|
||||
label={intl.formatMessage({
|
||||
id: "common.membershipId",
|
||||
defaultMessage: "Membership ID",
|
||||
})}
|
||||
name="membershipNo"
|
||||
|
||||
@@ -45,6 +45,7 @@ export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
<span>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{`${intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.title",
|
||||
defaultMessage: "Get the member room price",
|
||||
})}: `}
|
||||
</span>
|
||||
@@ -65,6 +66,7 @@ export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<div>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.joinCheckboxLabel",
|
||||
defaultMessage: "Join Scandic Friends now",
|
||||
})}
|
||||
</div>
|
||||
@@ -83,6 +85,7 @@ export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
redirectTo={loginPathname}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.loginButtonText",
|
||||
defaultMessage: "Log in",
|
||||
})}
|
||||
</LoginButton>
|
||||
@@ -92,6 +95,7 @@ export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
<Footnote color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.terms",
|
||||
defaultMessage:
|
||||
"By joining you accept the <termsAndConditionsLink>Terms and Conditions</termsAndConditionsLink>. The Scandic Friends Membership is valid until further notice, but can at any time be terminated by contacting Scandic Customer Service.",
|
||||
},
|
||||
|
||||
@@ -55,6 +55,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<h2 className={styles.priceContainer}>
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.title",
|
||||
defaultMessage: "Get the member room price",
|
||||
})}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
@@ -74,6 +75,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<div>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.joinCheckboxLabel",
|
||||
defaultMessage: "Join Scandic Friends now",
|
||||
})}
|
||||
</div>
|
||||
@@ -85,6 +87,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
registerOptions={{ onBlur: updateDetailsStore }}
|
||||
disabled={Boolean(joinValue)}
|
||||
label={intl.formatMessage({
|
||||
id: "enterDetails.joinScandicFriendsCard.membershipIdLabel",
|
||||
defaultMessage: "Already a member? Membership ID",
|
||||
})}
|
||||
/>
|
||||
@@ -94,6 +97,7 @@ export function PartnerSASJoinScandicFriendsCard({
|
||||
<Footnote color="uiTextPlaceholder">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "enterDetails.joinScandicFriendsCard.terms",
|
||||
defaultMessage:
|
||||
"By joining you accept the <termsAndConditionsLink>Terms and Conditions</termsAndConditionsLink>. The Scandic Friends Membership is valid until further notice, but can at any time be terminated by contacting Scandic Customer Service.",
|
||||
},
|
||||
|
||||
@@ -22,6 +22,7 @@ export function MembershipNumberInput({
|
||||
label={
|
||||
label ||
|
||||
intl.formatMessage({
|
||||
id: "common.membershipId",
|
||||
defaultMessage: "Membership ID",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ export default function Signup({
|
||||
<BookingFlowInput
|
||||
name="zipCode"
|
||||
label={intl.formatMessage({
|
||||
id: "common.zipCode",
|
||||
defaultMessage: "Zip code",
|
||||
})}
|
||||
registerOptions={{ required: true, ...registerOptions }}
|
||||
@@ -57,6 +58,7 @@ export default function Signup({
|
||||
<Caption type="bold">
|
||||
<span className={styles.required}>
|
||||
{intl.formatMessage({
|
||||
id: "common.birthDate",
|
||||
defaultMessage: "Birth date",
|
||||
})}
|
||||
</span>
|
||||
@@ -64,9 +66,18 @@ export default function Signup({
|
||||
</header>
|
||||
<DateSelect
|
||||
labels={{
|
||||
day: intl.formatMessage({ defaultMessage: "Day" }),
|
||||
month: intl.formatMessage({ defaultMessage: "Month" }),
|
||||
year: intl.formatMessage({ defaultMessage: "Year" }),
|
||||
day: intl.formatMessage({
|
||||
id: "common.day",
|
||||
defaultMessage: "Day",
|
||||
}),
|
||||
month: intl.formatMessage({
|
||||
id: "common.month",
|
||||
defaultMessage: "Month",
|
||||
}),
|
||||
year: intl.formatMessage({
|
||||
id: "common.year",
|
||||
defaultMessage: "Year",
|
||||
}),
|
||||
errorMessage: getErrorMessage(
|
||||
intl,
|
||||
config.variant,
|
||||
|
||||
@@ -170,12 +170,14 @@ export default function Details({ user }: DetailsProps) {
|
||||
className={styles.fullWidth}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.roomInfo.title",
|
||||
defaultMessage: "Guest information",
|
||||
})}
|
||||
</Footnote>
|
||||
<BookingFlowInput
|
||||
autoComplete="given-name"
|
||||
label={intl.formatMessage({
|
||||
id: "common.firstName",
|
||||
defaultMessage: "First name",
|
||||
})}
|
||||
maxLength={30}
|
||||
@@ -186,6 +188,7 @@ export default function Details({ user }: DetailsProps) {
|
||||
<BookingFlowInput
|
||||
autoComplete="family-name"
|
||||
label={intl.formatMessage({
|
||||
id: "common.lastName",
|
||||
defaultMessage: "Last name",
|
||||
})}
|
||||
maxLength={30}
|
||||
@@ -196,6 +199,7 @@ export default function Details({ user }: DetailsProps) {
|
||||
<CountrySelect
|
||||
className={styles.fullWidth}
|
||||
label={intl.formatMessage({
|
||||
id: "common.country",
|
||||
defaultMessage: "Country",
|
||||
})}
|
||||
lang={lang}
|
||||
@@ -213,6 +217,7 @@ export default function Details({ user }: DetailsProps) {
|
||||
autoComplete="email"
|
||||
className={styles.fullWidth}
|
||||
label={intl.formatMessage({
|
||||
id: "common.emailAddress",
|
||||
defaultMessage: "Email address",
|
||||
})}
|
||||
name="email"
|
||||
@@ -222,6 +227,7 @@ export default function Details({ user }: DetailsProps) {
|
||||
<Phone
|
||||
className={styles.fullWidth}
|
||||
countryLabel={intl.formatMessage({
|
||||
id: "common.countryCode",
|
||||
defaultMessage: "Country code",
|
||||
})}
|
||||
countriesWithTranslatedName={getFormattedCountryList(intl)}
|
||||
@@ -232,6 +238,7 @@ export default function Details({ user }: DetailsProps) {
|
||||
formState.errors.phoneNumber?.message
|
||||
)}
|
||||
label={intl.formatMessage({
|
||||
id: "common.phoneNumber",
|
||||
defaultMessage: "Phone number",
|
||||
})}
|
||||
name="phoneNumber"
|
||||
|
||||
@@ -19,6 +19,7 @@ export function SpecialRequests({
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<p className={styles.heading}>
|
||||
{intl.formatMessage({
|
||||
id: "enterDetails.specialRequests.heading",
|
||||
defaultMessage: "Special requests (optional)",
|
||||
})}
|
||||
</p>
|
||||
@@ -64,6 +65,7 @@ export function SpecialRequests({
|
||||
/> */}
|
||||
<TextArea
|
||||
label={intl.formatMessage({
|
||||
id: "enterDetails.specialRequests.commentLabel",
|
||||
defaultMessage:
|
||||
"Is there anything else you would like us to know before your arrival?",
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user