Skip to content

Commit caed6bb

Browse files
committed
fix: Account for generation of additional localizations
1 parent 0638bc5 commit caed6bb

Some content is hidden

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

41 files changed

+162
-4
lines changed

packages/clerk-js/src/ui/localization/__tests__/makeLocalizable.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('Test localizable components', () => {
100100
form_param_nil: 'form_param_nil',
101101
form_code_incorrect: 'form_code_incorrect',
102102
form_password_incorrect: 'form_password_incorrect',
103-
not_allowed_access: 'not_allowed_access',
103+
not_allowed_access: undefined,
104104
form_identifier_exists: 'form_identifier_exists',
105105
form_identifier_exists__username: 'form_identifier_exists__username',
106106
form_identifier_exists__email_address: 'form_identifier_exists__email_address',
@@ -126,7 +126,7 @@ describe('Test localizable components', () => {
126126
expect(translateError({ code: 'form_param_nil', message: 'message' })).toBe('form_param_nil');
127127
expect(translateError({ code: 'form_code_incorrect', message: 'message' })).toBe('form_code_incorrect');
128128
expect(translateError({ code: 'form_password_incorrect', message: 'message' })).toBe('form_password_incorrect');
129-
expect(translateError({ code: 'not_allowed_access', message: 'message' })).toBe('not_allowed_access');
129+
expect(translateError({ code: 'not_allowed_access', message: 'message' })).toBe('message');
130130
expect(translateError({ code: 'form_identifier_exists', message: 'message' })).toBe('form_identifier_exists');
131131
expect(
132132
translateError({ code: 'form_identifier_exists', message: 'message', meta: { paramName: 'username' } }),

packages/localizations/src/ar-SA.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const arSA: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/be-BY.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const beBY: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/bg-BG.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const bgBG: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,
@@ -633,8 +637,8 @@ export const bgBG: LocalizationResource = {
633637
requireUppercase: 'главна буква',
634638
sentencePrefix: 'Вашата парола трябва да съдържа',
635639
},
636-
session_exists: 'Вече сте влезнали.',
637640
phone_number_exists: 'Този телефонен номер е зает. Моля, опитайте с друг.',
641+
session_exists: 'Вече сте влезнали.',
638642
web3_missing_identifier: undefined,
639643
zxcvbn: {
640644
couldBeStronger: 'Вашата парола работи, но може да бъде по-сигурна. Опитайте да добавите повече символи.',

packages/localizations/src/ca-ES.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const caES: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/cs-CZ.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const csCZ: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/da-DK.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const daDK: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/de-DE.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const deDE: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/el-GR.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const elGR: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,

packages/localizations/src/en-GB.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const enGB: LocalizationResource = {
2020
checkout: {
2121
description__paymentSuccessful: undefined,
2222
description__subscriptionSuccessful: undefined,
23+
emailForm: {
24+
subtitle: undefined,
25+
title: undefined,
26+
},
2327
lineItems: {
2428
title__invoiceId: undefined,
2529
title__paymentMethod: undefined,
@@ -620,6 +624,7 @@ export const enGB: LocalizationResource = {
620624
'Your username contains invalid characters. Please use only letters, numbers, and underscores.',
621625
form_username_invalid_length: 'Your username must be between 3 and 20 characters long.',
622626
identification_deletion_failed: 'You cannot delete your last identification.',
627+
not_allowed_access: undefined,
623628
organization_domain_blocked: 'This is a blocked email provider domain. Please use a different one.',
624629
organization_domain_common: 'This is a common email provider domain. Please use a different one.',
625630
organization_domain_exists_for_enterprise_connection: 'This domain is already used for your organisation’s SSO',

0 commit comments

Comments
 (0)