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

Lines changed: 10 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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
},

0 commit comments

Comments
 (0)