feat: translate Voucher everywhere during booking flow
This commit is contained in:
committed by
Simon.Emanuelsson
parent
a0b0ed2544
commit
59f4a27cb1
@@ -1,12 +1,13 @@
|
||||
"use client"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||
import { formatPrice } from "@/utils/numberFormatting"
|
||||
|
||||
import type { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
|
||||
export default function Vouchers({
|
||||
currencyCode,
|
||||
isCancelled,
|
||||
@@ -27,7 +28,7 @@ export default function Vouchers({
|
||||
const totalPrice = formatPrice(
|
||||
intl,
|
||||
vouchers,
|
||||
CurrencyEnum.Voucher,
|
||||
intl.formatMessage({ defaultMessage: "Voucher" }),
|
||||
price,
|
||||
currencyCode
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user