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:
@@ -32,11 +32,13 @@ export default function Breakfast({
|
||||
const intl = useIntl()
|
||||
|
||||
const breakfastBuffet = intl.formatMessage({
|
||||
id: "common.breakfastBuffet",
|
||||
defaultMessage: "Breakfast buffet",
|
||||
})
|
||||
|
||||
const adultsMsg = intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastAdultsDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalAdults, plural, one {# adult} other {# adults}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -47,6 +49,7 @@ export default function Breakfast({
|
||||
if (childrenInRoom?.length) {
|
||||
kidsMsg = intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastChildrenDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalChildren, plural, one {# child} other {# children}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -58,7 +61,10 @@ export default function Breakfast({
|
||||
}
|
||||
|
||||
if (breakfastIncluded) {
|
||||
const included = intl.formatMessage({ defaultMessage: "Included" })
|
||||
const included = intl.formatMessage({
|
||||
id: "common.included",
|
||||
defaultMessage: "Included",
|
||||
})
|
||||
return (
|
||||
<Tbody>
|
||||
<RegularRow label={adultsMsg} value={included} />
|
||||
@@ -115,6 +121,7 @@ export default function Breakfast({
|
||||
|
||||
const freeChildrenMsg = intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastChildrenDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalChildren, plural, one {# child} other {# children}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -129,6 +136,7 @@ export default function Breakfast({
|
||||
<RegularRow
|
||||
label={intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastAdultsDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalAdults, plural, one {# adult} other {# adults}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -140,6 +148,7 @@ export default function Breakfast({
|
||||
<RegularRow
|
||||
label={intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastChildrenDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalChildren, plural, one {# child} other {# children}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -161,6 +170,7 @@ export default function Breakfast({
|
||||
<RegularRow
|
||||
label={intl.formatMessage(
|
||||
{
|
||||
id: "priceDetails.breakfastChildrenDetails",
|
||||
defaultMessage:
|
||||
"Breakfast ({totalChildren, plural, one {# child} other {# children}}) x {totalBreakfasts}",
|
||||
},
|
||||
@@ -179,6 +189,7 @@ export default function Breakfast({
|
||||
|
||||
if (breakfast === false) {
|
||||
const noBreakfast = intl.formatMessage({
|
||||
id: "common.noBreakfast",
|
||||
defaultMessage: "No breakfast",
|
||||
})
|
||||
return (
|
||||
|
||||
@@ -38,6 +38,7 @@ export default function CorporateChequePrice({
|
||||
}
|
||||
|
||||
const averagePriceTitle = intl.formatMessage({
|
||||
id: "priceDetails.averagePricePerNight",
|
||||
defaultMessage: "Average price per night",
|
||||
})
|
||||
|
||||
@@ -57,7 +58,10 @@ export default function CorporateChequePrice({
|
||||
return (
|
||||
<>
|
||||
<BoldRow
|
||||
label={intl.formatMessage({ defaultMessage: "Room charge" })}
|
||||
label={intl.formatMessage({
|
||||
id: "priceDetails.roomCharge",
|
||||
defaultMessage: "Room charge",
|
||||
})}
|
||||
value={formatPrice(
|
||||
intl,
|
||||
price.numberOfCheques,
|
||||
|
||||
@@ -43,6 +43,7 @@ export default function RedemptionPrice({
|
||||
}
|
||||
|
||||
const averagePriceTitle = intl.formatMessage({
|
||||
id: "priceDetails.averagePricePerNight",
|
||||
defaultMessage: "Average price per night",
|
||||
})
|
||||
|
||||
@@ -61,7 +62,10 @@ export default function RedemptionPrice({
|
||||
return (
|
||||
<>
|
||||
<BoldRow
|
||||
label={intl.formatMessage({ defaultMessage: "Room charge" })}
|
||||
label={intl.formatMessage({
|
||||
id: "priceDetails.roomCharge",
|
||||
defaultMessage: "Room charge",
|
||||
})}
|
||||
value={formatPrice(
|
||||
intl,
|
||||
price.pointsPerStay,
|
||||
|
||||
@@ -40,6 +40,7 @@ export default function RegularPrice({
|
||||
}
|
||||
|
||||
const averagePriceTitle = intl.formatMessage({
|
||||
id: "priceDetails.averagePricePerNight",
|
||||
defaultMessage: "Average price per night",
|
||||
})
|
||||
|
||||
@@ -62,7 +63,10 @@ export default function RegularPrice({
|
||||
return (
|
||||
<>
|
||||
<BoldRow
|
||||
label={intl.formatMessage({ defaultMessage: "Room charge" })}
|
||||
label={intl.formatMessage({
|
||||
id: "priceDetails.roomCharge",
|
||||
defaultMessage: "Room charge",
|
||||
})}
|
||||
value={roomCharge}
|
||||
regularValue={regularCharge}
|
||||
isDiscounted={isDiscounted}
|
||||
|
||||
@@ -37,6 +37,7 @@ export default function VoucherPrice({
|
||||
}
|
||||
|
||||
const averagePriceTitle = intl.formatMessage({
|
||||
id: "priceDetails.averagePricePerNight",
|
||||
defaultMessage: "Average price per night",
|
||||
})
|
||||
|
||||
@@ -49,7 +50,10 @@ export default function VoucherPrice({
|
||||
return (
|
||||
<>
|
||||
<BoldRow
|
||||
label={intl.formatMessage({ defaultMessage: "Room charge" })}
|
||||
label={intl.formatMessage({
|
||||
id: "priceDetails.roomCharge",
|
||||
defaultMessage: "Room charge",
|
||||
})}
|
||||
value={formatPrice(intl, price.numberOfVouchers, CurrencyEnum.Voucher)}
|
||||
/>
|
||||
{nights > 1 ? (
|
||||
|
||||
@@ -33,11 +33,17 @@ export default function VatRow({ totalPrice, vat }: VatProps) {
|
||||
return (
|
||||
<>
|
||||
<RegularRow
|
||||
label={intl.formatMessage({ defaultMessage: "Price excluding VAT" })}
|
||||
label={intl.formatMessage({
|
||||
id: "booking.priceExcludingVat",
|
||||
defaultMessage: "Price excluding VAT",
|
||||
})}
|
||||
value={formatPrice(intl, priceExclVat, totalPrice.local.currency)}
|
||||
/>
|
||||
<RegularRow
|
||||
label={intl.formatMessage({ defaultMessage: "VAT {vat}%" }, { vat })}
|
||||
label={intl.formatMessage(
|
||||
{ id: "priceDetails.VAT", defaultMessage: "VAT {vat}%" },
|
||||
{ vat }
|
||||
)}
|
||||
value={formatPrice(intl, vatAmount, totalPrice.local.currency)}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -83,7 +83,10 @@ export default function PriceDetailsTable({
|
||||
|
||||
const nights = dt(toDate).diff(fromDate, "days")
|
||||
const nightsMsg = intl.formatMessage(
|
||||
{ defaultMessage: "{totalNights, plural, one {# night} other {# nights}}" },
|
||||
{
|
||||
id: "booking.numberOfNights",
|
||||
defaultMessage: "{totalNights, plural, one {# night} other {# nights}}",
|
||||
},
|
||||
{ totalNights: nights }
|
||||
)
|
||||
|
||||
@@ -157,7 +160,10 @@ export default function PriceDetailsTable({
|
||||
<Typography variant="Body/Paragraph/mdBold">
|
||||
<span>
|
||||
{intl.formatMessage(
|
||||
{ defaultMessage: "Room {roomIndex}" },
|
||||
{
|
||||
id: "booking.roomIndex",
|
||||
defaultMessage: "Room {roomIndex}",
|
||||
},
|
||||
{ roomIndex: idx + 1 }
|
||||
)}
|
||||
</span>
|
||||
@@ -209,13 +215,21 @@ export default function PriceDetailsTable({
|
||||
)
|
||||
})}
|
||||
<Tbody>
|
||||
<HeaderRow title={intl.formatMessage({ defaultMessage: "Total" })} />
|
||||
<HeaderRow
|
||||
title={intl.formatMessage({
|
||||
id: "common.total",
|
||||
defaultMessage: "Total",
|
||||
})}
|
||||
/>
|
||||
|
||||
<VatRow totalPrice={totalPrice} vat={vat} />
|
||||
|
||||
<LargeRow
|
||||
allPricesIsDiscounted={allPricesIsDiscounted}
|
||||
label={intl.formatMessage({ defaultMessage: "Price including VAT" })}
|
||||
label={intl.formatMessage({
|
||||
id: "booking.priceIncludingVat",
|
||||
defaultMessage: "Price including VAT",
|
||||
})}
|
||||
price={totalPrice}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user