Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/twenty-clouds-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/localizations': patch
'@clerk/clerk-js': patch
'@clerk/types': patch
---

Update `<Checkout />` line items to include `x12` prefix when plan is annual
8 changes: 6 additions & 2 deletions packages/clerk-js/src/ui/components/Checkout/CheckoutForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ export const CheckoutForm = ({
>
<LineItems.Root>
<LineItems.Group borderTop={showDowngradeInfo}>
<LineItems.Title title={plan.name} />
<LineItems.Title
title={plan.name}
description={planPeriod === 'annual' ? localizationKeys('commerce.billedAnnually') : undefined}
/>
{/* TODO(@Commerce): needs localization */}
<LineItems.Description
prefix={planPeriod === 'annual' ? 'x12' : undefined}
text={`${plan.currencySymbol}${planPeriod === 'month' ? plan.amountFormatted : plan.annualMonthlyAmountFormatted}`}
suffix={`per month${planPeriod === 'annual' ? ', times 12 months' : ''}`}
suffix={localizationKeys('commerce.checkout.perMonth')}
/>
</LineItems.Group>
<LineItems.Group
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/ui/elements/LineItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ function Description({ text, prefix, suffix, truncateText = false, copyText = fa
sx={t => ({
display: 'inline-flex',
justifyContent: 'flex-end',
alignItems: 'center',
gap: t.space.$1,
minWidth: '0',
})}
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ar-SA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const arSA: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/be-BY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const beBY: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/bg-BG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const bgBG: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ca-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const caES: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/cs-CZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const csCZ: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/da-DK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const daDK: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/de-DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const deDE: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/el-GR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const elGR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/en-GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const enGB: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const enUS: LocalizationResource = {
title__subscriptionBegins: 'Subscription begins',
title__totalPaid: 'Total paid',
},
perMonth: 'per month',
title__paymentSuccessful: 'Payment was successful!',
title__subscriptionSuccessful: 'Success!',
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const esES: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/es-MX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const esMX: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/fi-FI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const fiFI: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/fr-FR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const frFR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/he-IL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const heIL: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/hr-HR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const hrHR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/hu-HU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const huHU: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/id-ID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const idID: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/is-IS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const isIS: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/it-IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const itIT: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const jaJP: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ko-KR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const koKR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/mn-MN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const mnMN: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/nb-NO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const nbNO: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/nl-BE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const nlBE: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/nl-NL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const nlNL: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/pl-PL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const plPL: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const ptBR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/pt-PT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const ptPT: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ro-RO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const roRO: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/ru-RU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const ruRU: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/sk-SK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const skSK: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/sr-RS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const srRS: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/sv-SE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const svSE: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/th-TH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const thTH: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/tr-TR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const trTR: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/uk-UA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const ukUA: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/vi-VN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const viVN: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const zhCN: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const zhTW: LocalizationResource = {
title__subscriptionBegins: undefined,
title__totalPaid: undefined,
},
perMonth: undefined,
title__paymentSuccessful: undefined,
title__subscriptionSuccessful: undefined,
},
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/localization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ type _LocalizationResource = {
subtitle: LocalizationValue;
};
downgradeNotice: LocalizationValue;
perMonth: LocalizationValue;
};
};
signUp: {
Expand Down
Loading