diff --git a/.changeset/chilled-garlics-knock.md b/.changeset/chilled-garlics-knock.md new file mode 100644 index 00000000000..962fa085af5 --- /dev/null +++ b/.changeset/chilled-garlics-knock.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Add support for localizationKeys within commerce components. diff --git a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx index c44ff51e7ba..dea80762f82 100644 --- a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx +++ b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx @@ -1,7 +1,7 @@ import type { __experimental_CommerceCheckoutResource } from '@clerk/types'; import { useCheckoutContext } from '../../contexts'; -import { Box, Button, descriptors, Heading, Icon, Span, Text } from '../../customizables'; +import { Box, Button, descriptors, Heading, Icon, localizationKeys, Span, Text } from '../../customizables'; import { Drawer, LineItems } from '../../elements'; import { Check } from '../../icons'; @@ -98,30 +98,35 @@ export const CheckoutComplete = ({ checkout }: { checkout: __experimental_Commer > - Total paid - - {checkout.invoice - ? `${checkout.invoice.totals.grandTotal.currencySymbol}${checkout.invoice.totals.grandTotal.amountFormatted}` - : '–'} - + {/* TODO(@COMMERCE): needs localization */} + + {/* TODO(@COMMERCE): needs localization */} - Payment method - - {checkout.paymentSource ? `${checkout.paymentSource.cardType} ⋯ ${checkout.paymentSource.last4}` : '–'} - + + {/* TODO(@COMMERCE): needs localization */} - Invoice ID - {checkout.invoice ? checkout.invoice.id : '–'} + + - +