Skip to content

Commit afdfd18

Browse files
fix(clerk-js,types,localizations): Update plans page title (#5889)
1 parent 320937a commit afdfd18

45 files changed

Lines changed: 777 additions & 248 deletions

Some content is hidden

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

.changeset/pink-wolves-juggle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/types': patch
5+
---
6+
7+
Update profile components plans page heading from `Switch plans` to `Plans`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const OrganizationPlansPageInternal = () => {
2222
>
2323
<Header.BackLink onClick={() => void navigate('../', { searchParams: new URLSearchParams('tab=plans') })}>
2424
<Header.Title
25-
localizationKey={localizationKeys('organizationProfile.billingPage.switchPlansSection.title')}
25+
localizationKey={localizationKeys('organizationProfile.plansPage.title')}
2626
textVariant='h2'
2727
/>
2828
</Header.BackLink>
@@ -36,7 +36,7 @@ const OrganizationPlansPageInternal = () => {
3636
<Alert
3737
variant='info'
3838
colorScheme='info'
39-
title={localizationKeys('organizationProfile.billingPage.alerts.noPermissionsToManageBilling')}
39+
title={localizationKeys('organizationProfile.plansPage.alerts.noPermissionsToManageBilling')}
4040
/>
4141
</Protect>
4242
<PricingTableContext.Provider value={{ componentName: 'PricingTable', mode: 'modal' }}>

packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function Card(props: CardProps) {
256256
</Tooltip.Trigger>
257257
{isSignedIn && !canManageBilling && (
258258
<Tooltip.Content
259-
text={localizationKeys('organizationProfile.billingPage.alerts.noPermissionsToManageBilling')}
259+
text={localizationKeys('organizationProfile.plansPage.alerts.noPermissionsToManageBilling')}
260260
/>
261261
)}
262262
</Tooltip.Root>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const PlansPageInternal = () => {
2020
>
2121
<Header.BackLink onClick={() => void navigate('../', { searchParams: new URLSearchParams('tab=plans') })}>
2222
<Header.Title
23-
localizationKey={localizationKeys('userProfile.billingPage.switchPlansSection.title')}
23+
localizationKey={localizationKeys('userProfile.plansPage.title')}
2424
textVariant='h2'
2525
/>
2626
</Header.BackLink>

packages/localizations/src/ar-SA.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const arSA: LocalizationResource = {
4646
title: undefined,
4747
},
4848
lineItems: {
49-
title__statementId: undefined,
5049
title__paymentMethod: undefined,
50+
title__statementId: undefined,
5151
title__subscriptionBegins: undefined,
5252
title__totalPaid: undefined,
5353
},
@@ -67,6 +67,7 @@ export const arSA: LocalizationResource = {
6767
subscribe: undefined,
6868
switchPlan: undefined,
6969
switchToAnnual: undefined,
70+
switchToMonthly: undefined,
7071
viewFeatures: undefined,
7172
year: undefined,
7273
},
@@ -162,9 +163,6 @@ export const arSA: LocalizationResource = {
162163
badge__manualInvitation: 'ليس هناك تسجيل تلقائي',
163164
badge__unverified: 'لم يتم التحقق منها',
164165
billingPage: {
165-
alerts: {
166-
noPermissionsToManageBilling: undefined,
167-
},
168166
paymentSourcesSection: {
169167
actionLabel__default: undefined,
170168
actionLabel__remove: undefined,
@@ -183,8 +181,8 @@ export const arSA: LocalizationResource = {
183181
title: undefined,
184182
},
185183
start: {
186-
headerTitle__statements: undefined,
187184
headerTitle__plans: undefined,
185+
headerTitle__statements: undefined,
188186
headerTitle__subscriptions: undefined,
189187
},
190188
subscriptionsListSection: {
@@ -194,6 +192,9 @@ export const arSA: LocalizationResource = {
194192
subscriptionsSection: {
195193
actionLabel__default: undefined,
196194
},
195+
switchPlansSection: {
196+
title: undefined,
197+
},
197198
title: undefined,
198199
},
199200
createDomainPage: {
@@ -258,6 +259,12 @@ export const arSA: LocalizationResource = {
258259
members: 'الأعضاء',
259260
title: 'المنظمة',
260261
},
262+
plansPage: {
263+
alerts: {
264+
noPermissionsToManageBilling: undefined,
265+
},
266+
title: undefined,
267+
},
261268
profilePage: {
262269
dangerSection: {
263270
deleteOrganization: {
@@ -772,8 +779,8 @@ export const arSA: LocalizationResource = {
772779
title: undefined,
773780
},
774781
start: {
775-
headerTitle__statements: undefined,
776782
headerTitle__plans: undefined,
783+
headerTitle__statements: undefined,
777784
headerTitle__subscriptions: undefined,
778785
},
779786
subscriptionsListSection: {
@@ -783,6 +790,9 @@ export const arSA: LocalizationResource = {
783790
subscriptionsSection: {
784791
actionLabel__default: undefined,
785792
},
793+
switchPlansSection: {
794+
title: undefined,
795+
},
786796
title: undefined,
787797
},
788798
connectedAccountPage: {
@@ -924,6 +934,9 @@ export const arSA: LocalizationResource = {
924934
verifySubtitle: 'أدخل رمز التحقق المرسل إلى {{identifier}}',
925935
verifyTitle: 'التحقق من رقم الهاتف',
926936
},
937+
plansPage: {
938+
title: undefined,
939+
},
927940
profilePage: {
928941
fileDropAreaHint: 'أرفع صورة بصيغة JPG, PNG, GIF أو WEBP أقل من 10 ميغابايت',
929942
imageFormDestructiveActionSubtitle: 'حذف صورة الملف الشخصي',

packages/localizations/src/be-BY.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const beBY: LocalizationResource = {
4646
title: undefined,
4747
},
4848
lineItems: {
49-
title__statementId: undefined,
5049
title__paymentMethod: undefined,
50+
title__statementId: undefined,
5151
title__subscriptionBegins: undefined,
5252
title__totalPaid: undefined,
5353
},
@@ -67,6 +67,7 @@ export const beBY: LocalizationResource = {
6767
subscribe: undefined,
6868
switchPlan: undefined,
6969
switchToAnnual: undefined,
70+
switchToMonthly: undefined,
7071
viewFeatures: undefined,
7172
year: undefined,
7273
},
@@ -163,9 +164,6 @@ export const beBY: LocalizationResource = {
163164
badge__manualInvitation: 'No automatic enrollment',
164165
badge__unverified: 'Unverified',
165166
billingPage: {
166-
alerts: {
167-
noPermissionsToManageBilling: undefined,
168-
},
169167
paymentSourcesSection: {
170168
actionLabel__default: undefined,
171169
actionLabel__remove: undefined,
@@ -184,8 +182,8 @@ export const beBY: LocalizationResource = {
184182
title: undefined,
185183
},
186184
start: {
187-
headerTitle__statements: undefined,
188185
headerTitle__plans: undefined,
186+
headerTitle__statements: undefined,
189187
headerTitle__subscriptions: undefined,
190188
},
191189
subscriptionsListSection: {
@@ -195,6 +193,9 @@ export const beBY: LocalizationResource = {
195193
subscriptionsSection: {
196194
actionLabel__default: undefined,
197195
},
196+
switchPlansSection: {
197+
title: undefined,
198+
},
198199
title: undefined,
199200
},
200201
createDomainPage: {
@@ -259,6 +260,12 @@ export const beBY: LocalizationResource = {
259260
members: 'Members',
260261
title: 'Organization',
261262
},
263+
plansPage: {
264+
alerts: {
265+
noPermissionsToManageBilling: undefined,
266+
},
267+
title: undefined,
268+
},
262269
profilePage: {
263270
dangerSection: {
264271
deleteOrganization: {
@@ -780,8 +787,8 @@ export const beBY: LocalizationResource = {
780787
title: undefined,
781788
},
782789
start: {
783-
headerTitle__statements: undefined,
784790
headerTitle__plans: undefined,
791+
headerTitle__statements: undefined,
785792
headerTitle__subscriptions: undefined,
786793
},
787794
subscriptionsListSection: {
@@ -791,6 +798,9 @@ export const beBY: LocalizationResource = {
791798
subscriptionsSection: {
792799
actionLabel__default: undefined,
793800
},
801+
switchPlansSection: {
802+
title: undefined,
803+
},
794804
title: undefined,
795805
},
796806
connectedAccountPage: {
@@ -939,6 +949,9 @@ export const beBY: LocalizationResource = {
939949
verifySubtitle: 'Увядзіце код пацверджання, адпраўлены на {{identifier}}',
940950
verifyTitle: 'Праверыць нумар тэлефона',
941951
},
952+
plansPage: {
953+
title: undefined,
954+
},
942955
profilePage: {
943956
fileDropAreaHint: 'Загрузіце малюнак у фарматах JPG, PNG, GIF або WEBP памерам менш за 10 МБ',
944957
imageFormDestructiveActionSubtitle: 'Выдаліць малюнак',

packages/localizations/src/bg-BG.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const bgBG: LocalizationResource = {
4646
title: undefined,
4747
},
4848
lineItems: {
49-
title__statementId: undefined,
5049
title__paymentMethod: undefined,
50+
title__statementId: undefined,
5151
title__subscriptionBegins: undefined,
5252
title__totalPaid: undefined,
5353
},
@@ -67,6 +67,7 @@ export const bgBG: LocalizationResource = {
6767
subscribe: undefined,
6868
switchPlan: undefined,
6969
switchToAnnual: undefined,
70+
switchToMonthly: undefined,
7071
viewFeatures: undefined,
7172
year: undefined,
7273
},
@@ -161,9 +162,6 @@ export const bgBG: LocalizationResource = {
161162
badge__manualInvitation: 'Няма автоматично включване',
162163
badge__unverified: 'Неверифициран',
163164
billingPage: {
164-
alerts: {
165-
noPermissionsToManageBilling: undefined,
166-
},
167165
paymentSourcesSection: {
168166
actionLabel__default: undefined,
169167
actionLabel__remove: undefined,
@@ -182,8 +180,8 @@ export const bgBG: LocalizationResource = {
182180
title: undefined,
183181
},
184182
start: {
185-
headerTitle__statements: undefined,
186183
headerTitle__plans: undefined,
184+
headerTitle__statements: undefined,
187185
headerTitle__subscriptions: undefined,
188186
},
189187
subscriptionsListSection: {
@@ -193,6 +191,9 @@ export const bgBG: LocalizationResource = {
193191
subscriptionsSection: {
194192
actionLabel__default: undefined,
195193
},
194+
switchPlansSection: {
195+
title: undefined,
196+
},
196197
title: undefined,
197198
},
198199
createDomainPage: {
@@ -258,6 +259,12 @@ export const bgBG: LocalizationResource = {
258259
members: 'Членове',
259260
title: 'Организация',
260261
},
262+
plansPage: {
263+
alerts: {
264+
noPermissionsToManageBilling: undefined,
265+
},
266+
title: undefined,
267+
},
261268
profilePage: {
262269
dangerSection: {
263270
deleteOrganization: {
@@ -771,8 +778,8 @@ export const bgBG: LocalizationResource = {
771778
title: undefined,
772779
},
773780
start: {
774-
headerTitle__statements: undefined,
775781
headerTitle__plans: undefined,
782+
headerTitle__statements: undefined,
776783
headerTitle__subscriptions: undefined,
777784
},
778785
subscriptionsListSection: {
@@ -782,6 +789,9 @@ export const bgBG: LocalizationResource = {
782789
subscriptionsSection: {
783790
actionLabel__default: undefined,
784791
},
792+
switchPlansSection: {
793+
title: undefined,
794+
},
785795
title: undefined,
786796
},
787797
connectedAccountPage: {
@@ -929,6 +939,9 @@ export const bgBG: LocalizationResource = {
929939
verifySubtitle: 'Enter the verification code sent to {{identifier}}',
930940
verifyTitle: 'Verify phone number',
931941
},
942+
plansPage: {
943+
title: undefined,
944+
},
932945
profilePage: {
933946
fileDropAreaHint: 'Препоръчителен размер 1:1, до 10MB.',
934947
imageFormDestructiveActionSubtitle: 'Премахни',

0 commit comments

Comments
 (0)