Skip to content

Commit 2beea29

Browse files
authored
fix(clerk-js,types,localizations): Use "Payment methods" terminology (#5721)
1 parent 115601d commit 2beea29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+59
-49
lines changed

.changeset/small-berries-sneeze.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/types': patch
5+
---
6+
7+
Switch to "Payment method" terminology instead of "Payment source".
8+
9+
- Removes `userProfile.__experimental_billingPage.start.headerTitle__paymentSources`
10+
- Adds `userProfile.__experimental_billingPage.start.headerTitle__paymentMethods`

packages/clerk-js/src/ui/components/Checkout/CheckoutForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const CheckoutFormElements = ({
163163
onOpenChange={setOpenAccountFundsDropDown}
164164
>
165165
{/* TODO(@Commerce): needs localization */}
166-
<Disclosure.Trigger text='Payment Sources' />
166+
<Disclosure.Trigger text='Payment Methods' />
167167
<Disclosure.Content>
168168
<Col gap={3}>
169169
<PaymentSourceMethods

packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationBillingPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SubscriptionsList } from '../Subscriptions';
2626
const orgTabMap = {
2727
0: 'plans',
2828
1: 'invoices',
29-
2: 'payment-sources',
29+
2: 'payment-methods',
3030
} as const;
3131

3232
export const OrganizationBillingPage = withPlans(
@@ -75,7 +75,7 @@ export const OrganizationBillingPage = withPlans(
7575
/>
7676
<Tab
7777
localizationKey={localizationKeys(
78-
'userProfile.__experimental_billingPage.start.headerTitle__paymentSources',
78+
'userProfile.__experimental_billingPage.start.headerTitle__paymentMethods',
7979
)}
8080
/>
8181
</TabsList>

packages/clerk-js/src/ui/components/UserProfile/BillingPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SubscriptionsList } from '../Subscriptions';
2626
const tabMap = {
2727
0: 'plans',
2828
1: 'invoices',
29-
2: 'payment-sources',
29+
2: 'payment-methods',
3030
} as const;
3131

3232
export const BillingPage = withPlans(
@@ -76,7 +76,7 @@ export const BillingPage = withPlans(
7676
/>
7777
<Tab
7878
localizationKey={localizationKeys(
79-
'userProfile.__experimental_billingPage.start.headerTitle__paymentSources',
79+
'userProfile.__experimental_billingPage.start.headerTitle__paymentMethods',
8080
)}
8181
/>
8282
</TabsList>

packages/localizations/src/ar-SA.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ export const arSA: LocalizationResource = {
707707
},
708708
start: {
709709
headerTitle__invoices: undefined,
710-
headerTitle__paymentSources: undefined,
710+
headerTitle__paymentMethods: undefined,
711711
headerTitle__plans: undefined,
712712
headerTitle__subscriptions: undefined,
713713
},

packages/localizations/src/be-BY.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export const beBY: LocalizationResource = {
715715
},
716716
start: {
717717
headerTitle__invoices: undefined,
718-
headerTitle__paymentSources: undefined,
718+
headerTitle__paymentMethods: undefined,
719719
headerTitle__plans: undefined,
720720
headerTitle__subscriptions: undefined,
721721
},

packages/localizations/src/bg-BG.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export const bgBG: LocalizationResource = {
706706
},
707707
start: {
708708
headerTitle__invoices: undefined,
709-
headerTitle__paymentSources: undefined,
709+
headerTitle__paymentMethods: undefined,
710710
headerTitle__plans: undefined,
711711
headerTitle__subscriptions: undefined,
712712
},

packages/localizations/src/ca-ES.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export const caES: LocalizationResource = {
710710
},
711711
start: {
712712
headerTitle__invoices: undefined,
713-
headerTitle__paymentSources: undefined,
713+
headerTitle__paymentMethods: undefined,
714714
headerTitle__plans: undefined,
715715
headerTitle__subscriptions: undefined,
716716
},

packages/localizations/src/cs-CZ.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export const csCZ: LocalizationResource = {
706706
},
707707
start: {
708708
headerTitle__invoices: undefined,
709-
headerTitle__paymentSources: undefined,
709+
headerTitle__paymentMethods: undefined,
710710
headerTitle__plans: undefined,
711711
headerTitle__subscriptions: undefined,
712712
},

packages/localizations/src/da-DK.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ export const daDK: LocalizationResource = {
707707
},
708708
start: {
709709
headerTitle__invoices: undefined,
710-
headerTitle__paymentSources: undefined,
710+
headerTitle__paymentMethods: undefined,
711711
headerTitle__plans: undefined,
712712
headerTitle__subscriptions: undefined,
713713
},

packages/localizations/src/de-DE.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ export const deDE: LocalizationResource = {
725725
},
726726
start: {
727727
headerTitle__invoices: 'Rechnungen',
728-
headerTitle__paymentSources: 'Zahlungsquellen',
728+
headerTitle__paymentMethods: 'Zahlungsquellen',
729729
headerTitle__plans: 'Pläne',
730730
headerTitle__subscriptions: undefined,
731731
},

packages/localizations/src/el-GR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export const elGR: LocalizationResource = {
715715
},
716716
start: {
717717
headerTitle__invoices: undefined,
718-
headerTitle__paymentSources: undefined,
718+
headerTitle__paymentMethods: undefined,
719719
headerTitle__plans: undefined,
720720
headerTitle__subscriptions: undefined,
721721
},

packages/localizations/src/en-GB.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export const enGB: LocalizationResource = {
715715
},
716716
start: {
717717
headerTitle__invoices: undefined,
718-
headerTitle__paymentSources: undefined,
718+
headerTitle__paymentMethods: undefined,
719719
headerTitle__plans: undefined,
720720
headerTitle__subscriptions: undefined,
721721
},

packages/localizations/src/en-US.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ export const enUS: LocalizationResource = {
689689
paymentSourcesSection: {
690690
actionLabel__default: 'Make default',
691691
actionLabel__remove: 'Remove',
692-
add: 'Add new payment source',
693-
addSubtitle: 'Add a new payment source to your account.',
692+
add: 'Add new payment method',
693+
addSubtitle: 'Add a new payment method to your account.',
694694
cancelButton: 'Cancel',
695695
formButtonPrimary__add: 'Add Payment Method',
696696
formButtonPrimary__pay: 'Pay {{amount}}',
@@ -699,13 +699,13 @@ export const enUS: LocalizationResource = {
699699
messageLine2:
700700
'You will no longer be able to use this payment source and any recurring subscriptions dependent on it will no longer work.',
701701
successMessage: '{{paymentSource}} has been removed from your account.',
702-
title: 'Remove payment source',
702+
title: 'Remove payment method',
703703
},
704704
title: 'Available options',
705705
},
706706
start: {
707707
headerTitle__invoices: 'Invoices',
708-
headerTitle__paymentSources: 'Payment Sources',
708+
headerTitle__paymentMethods: 'Payment Methods',
709709
headerTitle__plans: 'Plans',
710710
headerTitle__subscriptions: 'Subscriptions',
711711
},

packages/localizations/src/es-ES.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ export const esES: LocalizationResource = {
712712
},
713713
start: {
714714
headerTitle__invoices: undefined,
715-
headerTitle__paymentSources: undefined,
715+
headerTitle__paymentMethods: undefined,
716716
headerTitle__plans: undefined,
717717
headerTitle__subscriptions: undefined,
718718
},

packages/localizations/src/es-MX.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export const esMX: LocalizationResource = {
713713
},
714714
start: {
715715
headerTitle__invoices: undefined,
716-
headerTitle__paymentSources: undefined,
716+
headerTitle__paymentMethods: undefined,
717717
headerTitle__plans: undefined,
718718
headerTitle__subscriptions: undefined,
719719
},

packages/localizations/src/fi-FI.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export const fiFI: LocalizationResource = {
710710
},
711711
start: {
712712
headerTitle__invoices: undefined,
713-
headerTitle__paymentSources: undefined,
713+
headerTitle__paymentMethods: undefined,
714714
headerTitle__plans: undefined,
715715
headerTitle__subscriptions: undefined,
716716
},

packages/localizations/src/fr-FR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export const frFR: LocalizationResource = {
715715
},
716716
start: {
717717
headerTitle__invoices: undefined,
718-
headerTitle__paymentSources: undefined,
718+
headerTitle__paymentMethods: undefined,
719719
headerTitle__plans: undefined,
720720
headerTitle__subscriptions: undefined,
721721
},

packages/localizations/src/he-IL.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ export const heIL: LocalizationResource = {
700700
},
701701
start: {
702702
headerTitle__invoices: undefined,
703-
headerTitle__paymentSources: undefined,
703+
headerTitle__paymentMethods: undefined,
704704
headerTitle__plans: undefined,
705705
headerTitle__subscriptions: undefined,
706706
},

packages/localizations/src/hr-HR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export const hrHR: LocalizationResource = {
715715
},
716716
start: {
717717
headerTitle__invoices: undefined,
718-
headerTitle__paymentSources: undefined,
718+
headerTitle__paymentMethods: undefined,
719719
headerTitle__plans: undefined,
720720
headerTitle__subscriptions: undefined,
721721
},

packages/localizations/src/hu-HU.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ export const huHU: LocalizationResource = {
711711
},
712712
start: {
713713
headerTitle__invoices: undefined,
714-
headerTitle__paymentSources: undefined,
714+
headerTitle__paymentMethods: undefined,
715715
headerTitle__plans: undefined,
716716
headerTitle__subscriptions: undefined,
717717
},

packages/localizations/src/id-ID.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export const idID: LocalizationResource = {
719719
},
720720
start: {
721721
headerTitle__invoices: undefined,
722-
headerTitle__paymentSources: undefined,
722+
headerTitle__paymentMethods: undefined,
723723
headerTitle__plans: undefined,
724724
headerTitle__subscriptions: undefined,
725725
},

packages/localizations/src/is-IS.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export const isIS: LocalizationResource = {
713713
},
714714
start: {
715715
headerTitle__invoices: undefined,
716-
headerTitle__paymentSources: undefined,
716+
headerTitle__paymentMethods: undefined,
717717
headerTitle__plans: undefined,
718718
headerTitle__subscriptions: undefined,
719719
},

packages/localizations/src/it-IT.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export const itIT: LocalizationResource = {
710710
},
711711
start: {
712712
headerTitle__invoices: undefined,
713-
headerTitle__paymentSources: undefined,
713+
headerTitle__paymentMethods: undefined,
714714
headerTitle__plans: undefined,
715715
headerTitle__subscriptions: undefined,
716716
},

packages/localizations/src/ja-JP.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ export const jaJP: LocalizationResource = {
709709
},
710710
start: {
711711
headerTitle__invoices: undefined,
712-
headerTitle__paymentSources: undefined,
712+
headerTitle__paymentMethods: undefined,
713713
headerTitle__plans: undefined,
714714
headerTitle__subscriptions: undefined,
715715
},

packages/localizations/src/ko-KR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ export const koKR: LocalizationResource = {
703703
},
704704
start: {
705705
headerTitle__invoices: undefined,
706-
headerTitle__paymentSources: undefined,
706+
headerTitle__paymentMethods: undefined,
707707
headerTitle__plans: undefined,
708708
headerTitle__subscriptions: undefined,
709709
},

packages/localizations/src/mn-MN.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export const mnMN: LocalizationResource = {
710710
},
711711
start: {
712712
headerTitle__invoices: undefined,
713-
headerTitle__paymentSources: undefined,
713+
headerTitle__paymentMethods: undefined,
714714
headerTitle__plans: undefined,
715715
headerTitle__subscriptions: undefined,
716716
},

packages/localizations/src/nb-NO.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ export const nbNO: LocalizationResource = {
709709
},
710710
start: {
711711
headerTitle__invoices: undefined,
712-
headerTitle__paymentSources: undefined,
712+
headerTitle__paymentMethods: undefined,
713713
headerTitle__plans: undefined,
714714
headerTitle__subscriptions: undefined,
715715
},

packages/localizations/src/nl-BE.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export const nlBE: LocalizationResource = {
708708
},
709709
start: {
710710
headerTitle__invoices: undefined,
711-
headerTitle__paymentSources: undefined,
711+
headerTitle__paymentMethods: undefined,
712712
headerTitle__plans: undefined,
713713
headerTitle__subscriptions: undefined,
714714
},

packages/localizations/src/nl-NL.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export const nlNL: LocalizationResource = {
708708
},
709709
start: {
710710
headerTitle__invoices: undefined,
711-
headerTitle__paymentSources: undefined,
711+
headerTitle__paymentMethods: undefined,
712712
headerTitle__plans: undefined,
713713
headerTitle__subscriptions: undefined,
714714
},

packages/localizations/src/pl-PL.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ export const plPL: LocalizationResource = {
718718
},
719719
start: {
720720
headerTitle__invoices: undefined,
721-
headerTitle__paymentSources: undefined,
721+
headerTitle__paymentMethods: undefined,
722722
headerTitle__plans: undefined,
723723
headerTitle__subscriptions: undefined,
724724
},

packages/localizations/src/pt-BR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ export const ptBR: LocalizationResource = {
714714
},
715715
start: {
716716
headerTitle__invoices: undefined,
717-
headerTitle__paymentSources: undefined,
717+
headerTitle__paymentMethods: undefined,
718718
headerTitle__plans: undefined,
719719
headerTitle__subscriptions: undefined,
720720
},

packages/localizations/src/pt-PT.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export const ptPT: LocalizationResource = {
708708
},
709709
start: {
710710
headerTitle__invoices: undefined,
711-
headerTitle__paymentSources: undefined,
711+
headerTitle__paymentMethods: undefined,
712712
headerTitle__plans: undefined,
713713
headerTitle__subscriptions: undefined,
714714
},

packages/localizations/src/ro-RO.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export const roRO: LocalizationResource = {
713713
},
714714
start: {
715715
headerTitle__invoices: undefined,
716-
headerTitle__paymentSources: undefined,
716+
headerTitle__paymentMethods: undefined,
717717
headerTitle__plans: undefined,
718718
headerTitle__subscriptions: undefined,
719719
},

packages/localizations/src/ru-RU.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ export const ruRU: LocalizationResource = {
723723
},
724724
start: {
725725
headerTitle__invoices: undefined,
726-
headerTitle__paymentSources: undefined,
726+
headerTitle__paymentMethods: undefined,
727727
headerTitle__plans: undefined,
728728
headerTitle__subscriptions: undefined,
729729
},

packages/localizations/src/sk-SK.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export const skSK: LocalizationResource = {
706706
},
707707
start: {
708708
headerTitle__invoices: undefined,
709-
headerTitle__paymentSources: undefined,
709+
headerTitle__paymentMethods: undefined,
710710
headerTitle__plans: undefined,
711711
headerTitle__subscriptions: undefined,
712712
},

packages/localizations/src/sr-RS.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ export const srRS: LocalizationResource = {
709709
},
710710
start: {
711711
headerTitle__invoices: undefined,
712-
headerTitle__paymentSources: undefined,
712+
headerTitle__paymentMethods: undefined,
713713
headerTitle__plans: undefined,
714714
headerTitle__subscriptions: undefined,
715715
},

packages/localizations/src/sv-SE.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ export const svSE: LocalizationResource = {
712712
},
713713
start: {
714714
headerTitle__invoices: undefined,
715-
headerTitle__paymentSources: undefined,
715+
headerTitle__paymentMethods: undefined,
716716
headerTitle__plans: undefined,
717717
headerTitle__subscriptions: undefined,
718718
},

packages/localizations/src/th-TH.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export const thTH: LocalizationResource = {
708708
},
709709
start: {
710710
headerTitle__invoices: undefined,
711-
headerTitle__paymentSources: undefined,
711+
headerTitle__paymentMethods: undefined,
712712
headerTitle__plans: undefined,
713713
headerTitle__subscriptions: undefined,
714714
},

packages/localizations/src/tr-TR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ export const trTR: LocalizationResource = {
712712
},
713713
start: {
714714
headerTitle__invoices: undefined,
715-
headerTitle__paymentSources: undefined,
715+
headerTitle__paymentMethods: undefined,
716716
headerTitle__plans: undefined,
717717
headerTitle__subscriptions: undefined,
718718
},

0 commit comments

Comments
 (0)