Skip to content

Commit fd7a5be

Browse files
authoredJan 15, 2025··
fix(localizations): Force interpolation for socialButtonsBlockButtonManyInView (#4887)
1 parent cce371f commit fd7a5be

File tree

10 files changed

+20
-11
lines changed

10 files changed

+20
-11
lines changed
 

‎.changeset/lemon-ducks-hug.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/types': patch
4+
---
5+
6+
Update `socialButtonsBlockButtonManyInView` to only accept `'${string}{{provider|titleize}}${string}'` or `undefined`.

‎packages/localizations/src/be-BY.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export const beBY: LocalizationResource = {
547547
},
548548
},
549549
socialButtonsBlockButton: 'Працягнуць з дапамогай {{provider|titleize}}',
550-
socialButtonsBlockButtonManyInView: 'Увядзіце дадатковыя спосабы ўваходу',
550+
socialButtonsBlockButtonManyInView: undefined,
551551

552552
unstable__errors: {
553553
already_a_member_in_organization: 'Вы ўжо з’яўляецеся членам гэтай арганізацыі.',

‎packages/localizations/src/cs-CZ.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export const csCZ: LocalizationResource = {
540540
},
541541
},
542542
socialButtonsBlockButton: 'Pokračovat s {{provider|titleize}}',
543-
socialButtonsBlockButtonManyInView: 'Máme více možností přihlášení.',
543+
socialButtonsBlockButtonManyInView: undefined,
544544
unstable__errors: {
545545
already_a_member_in_organization: 'Již jste členem organizace.',
546546
captcha_invalid:

‎packages/localizations/src/da-DK.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export const daDK: LocalizationResource = {
542542
},
543543
},
544544
socialButtonsBlockButton: 'Forsæt med {{provider|titleize}}',
545-
socialButtonsBlockButtonManyInView: 'Vælg en metode til at fortsætte',
545+
socialButtonsBlockButtonManyInView: undefined,
546546
unstable__errors: {
547547
already_a_member_in_organization: undefined,
548548
captcha_invalid:

‎packages/localizations/src/de-DE.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ export const deDE: LocalizationResource = {
547547
},
548548
},
549549
socialButtonsBlockButton: 'Weiter mit {{provider|titleize}}',
550-
socialButtonsBlockButtonManyInView:
551-
'Zu viele Buttons angezeigt. Reduzieren Sie die Anzahl der Buttons, um fortzufahren.',
550+
socialButtonsBlockButtonManyInView: undefined,
552551
unstable__errors: {
553552
already_a_member_in_organization: 'Sie sind bereits Mitglied in dieser Organisation.',
554553
captcha_invalid:

‎packages/localizations/src/es-ES.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export const esES: LocalizationResource = {
549549
},
550550
},
551551
socialButtonsBlockButton: 'Continuar con {{provider|titleize}}',
552-
socialButtonsBlockButtonManyInView: 'Demasiados botones sociales visibles. Desplázate para ver más.',
552+
socialButtonsBlockButtonManyInView: undefined,
553553
unstable__errors: {
554554
already_a_member_in_organization: '{{email}} ya es miembro de la organización.',
555555
captcha_invalid:

‎packages/localizations/src/fr-FR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export const frFR: LocalizationResource = {
548548
},
549549
},
550550
socialButtonsBlockButton: 'Continuer avec {{provider|titleize}}',
551-
socialButtonsBlockButtonManyInView: 'Afficher plus de boutons sociaux',
551+
socialButtonsBlockButtonManyInView: undefined,
552552
unstable__errors: {
553553
already_a_member_in_organization: 'Vous êtes déjà membre de cette organisation.',
554554
captcha_invalid:

‎packages/localizations/src/it-IT.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,7 @@ export const itIT: LocalizationResource = {
543543
},
544544
},
545545
socialButtonsBlockButton: 'Continua con {{provider|titleize}}',
546-
socialButtonsBlockButtonManyInView: 'Continua con uno dei seguenti provider',
547-
546+
socialButtonsBlockButtonManyInView: undefined,
548547
unstable__errors: {
549548
already_a_member_in_organization: 'Sei già un membro di questa organizzazione.',
550549
captcha_invalid:

‎packages/localizations/src/pt-PT.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ export const ptPT: LocalizationResource = {
543543
},
544544
},
545545
socialButtonsBlockButton: 'Continuar com {{provider|titleize}}',
546-
socialButtonsBlockButtonManyInView: 'Escolha uma das opções abaixo',
546+
socialButtonsBlockButtonManyInView: undefined,
547547
unstable__errors: {
548548
already_a_member_in_organization: 'Já é membro nesta organização.',
549549
captcha_invalid:

‎packages/types/src/localization.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ type _LocalizationResource = {
2525
[r: string]: LocalizationValue;
2626
};
2727
socialButtonsBlockButton: LocalizationValue;
28-
socialButtonsBlockButtonManyInView: LocalizationValue;
28+
/**
29+
* It should be used to provide a shorter variation of `socialButtonsBlockButton`.
30+
* It is explicitly typed, in order to avoid contributions that use LLM tools to generate
31+
* translations that misinterpret the correct usage of this property.
32+
*/
33+
socialButtonsBlockButtonManyInView: `${string}{{provider|titleize}}${string}`;
2934
dividerText: LocalizationValue;
3035
formFieldLabel__emailAddress: LocalizationValue;
3136
formFieldLabel__emailAddresses: LocalizationValue;

0 commit comments

Comments
 (0)
Please sign in to comment.