Skip to content

Commit c8cbf9b

Browse files
dmoernerclaude
andcommitted
fix(ui): use an own-key check and regenerate localizations
Address CI and review feedback on the password error fallback: - `e.code in complexityErrors` matched inherited properties, so a code named `toString` or `constructor` would skip the fallback and rebuild the broken sentence. Use `Object.hasOwn`. - Return the error itself rather than a pre-resolved string, so `setError` pipes it through `translateError` and a future unmapped code can still be localized by code before falling back to the API message. This matches `createUsernameError`. - Run `pnpm --filter @clerk/localizations generate` to add the new key to the other locale files, which the "Verify localizations are generated" CI step requires. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent 8650ed1 commit c8cbf9b

50 files changed

Lines changed: 65 additions & 10 deletions

Some content is hidden

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

‎packages/localizations/src/ar-SA.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,7 @@ export const arSA: LocalizationResource = {
17461746
form_password_compromised__sign_in: undefined,
17471747
form_password_incorrect: undefined,
17481748
form_password_length_too_short: undefined,
1749+
form_password_matches_identifier: undefined,
17491750
form_password_not_strong_enough: 'كلمة المرور ليست قوية',
17501751
form_password_or_identifier_incorrect:
17511752
'كلمة المرور أو عنوان البريد الإلكتروني غير صحيح. حاول مرة أخرى أو استخدم طريقة أخرى.',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,7 @@ export const beBY: LocalizationResource = {
17571757
form_password_compromised__sign_in: undefined,
17581758
form_password_incorrect: 'Невірны пароль.',
17591759
form_password_length_too_short: 'Пароль занадта кароткі.',
1760+
form_password_matches_identifier: undefined,
17601761
form_password_not_strong_enough: 'Ваш пароль недастаткова надзейны.',
17611762
form_password_or_identifier_incorrect:
17621763
'Пароль або адрас электроннай пошты няправільны. Паспрабуйце яшчэ раз або выкарыстоўвайце іншы метад.',

‎packages/localizations/src/bg-BG.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,7 @@ export const bgBG: LocalizationResource = {
17501750
form_password_compromised__sign_in: undefined,
17511751
form_password_incorrect: 'Невалидна парола. Моля, опитайте отново.',
17521752
form_password_length_too_short: 'Паролата е твърде кратка. Моля, въведете поне 8 символа.',
1753+
form_password_matches_identifier: undefined,
17531754
form_password_not_strong_enough:
17541755
'Паролата трябва да съдържа поне една главна буква, една цифра и един специален символ.',
17551756
form_password_or_identifier_incorrect:

‎packages/localizations/src/bn-IN.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,7 @@ export const bnIN: LocalizationResource = {
17691769
form_password_compromised__sign_in: undefined,
17701770
form_password_incorrect: 'আপনি যে পাসওয়ার্ড লিখেছেন তা ভুল। দয়া করে আবার চেষ্টা করুন।',
17711771
form_password_length_too_short: 'আপনার পাসওয়ার্ড খুব ছোট। এটি কমপক্ষে ৮ অক্ষর দীর্ঘ হতে হবে।',
1772+
form_password_matches_identifier: undefined,
17721773
form_password_not_strong_enough: 'আপনার পাসওয়ার্ড যথেষ্ট শক্তিশালী নয়।',
17731774
form_password_or_identifier_incorrect:
17741775
'পাসওয়ার্ড বা ইমেইল ঠিকানা ভুল। আবার চেষ্টা করুন বা অন্য পদ্ধতি ব্যবহার করুন।',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,7 @@ export const caES: LocalizationResource = {
17601760
form_password_compromised__sign_in: undefined,
17611761
form_password_incorrect: 'La contrasenya introduïda és incorrecta.',
17621762
form_password_length_too_short: 'La teva contrasenya ha de tenir almenys 8 caràcters.',
1763+
form_password_matches_identifier: undefined,
17631764
form_password_not_strong_enough: 'La teva contrasenya no és prou forta.',
17641765
form_password_or_identifier_incorrect:
17651766
"La contrasenya o l'identificador és incorrecte. Torna-ho a intentar o utilitza un altre mètode.",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ export const csCZ: LocalizationResource = {
17621762
form_password_compromised__sign_in: undefined,
17631763
form_password_incorrect: 'Heslo je nesprávné.',
17641764
form_password_length_too_short: 'Heslo je příliš krátké.',
1765+
form_password_matches_identifier: undefined,
17651766
form_password_not_strong_enough: 'Vaše heslo není dostatečně silné.',
17661767
form_password_or_identifier_incorrect:
17671768
'Heslo nebo e-mailová adresa je nesprávná. Zkuste to znovu nebo použijte jinou metodu.',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,7 @@ export const daDK: LocalizationResource = {
17471747
form_password_compromised__sign_in: undefined,
17481748
form_password_incorrect: 'Adgangskoden er forkert.',
17491749
form_password_length_too_short: 'Adgangskoden er for kort.',
1750+
form_password_matches_identifier: undefined,
17501751
form_password_not_strong_enough: 'Adgangskoden er ikke stærk nok.',
17511752
form_password_or_identifier_incorrect:
17521753
'Adgangskoden eller e-mailadressen er forkert. Prøv igen eller brug en anden metode.',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,7 @@ export const deDE: LocalizationResource = {
17701770
form_password_compromised__sign_in: undefined,
17711771
form_password_incorrect: 'Das eingegebene Passwort ist falsch.',
17721772
form_password_length_too_short: 'Das Passwort ist zu kurz. Es muss mindestens 8 Zeichen lang sein.',
1773+
form_password_matches_identifier: undefined,
17731774
form_password_not_strong_enough: 'Passwort nicht stark genug.',
17741775
form_password_or_identifier_incorrect:
17751776
'Passwort oder E-Mail-Adresse ist falsch. Versuchen Sie es erneut oder verwenden Sie eine andere Methode.',

‎packages/localizations/src/el-GR.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ export const elGR: LocalizationResource = {
17651765
form_password_incorrect: 'Ο κωδικός πρόσβασης δεν είναι σωστός.',
17661766
form_password_length_too_short:
17671767
'Ο κωδικός πρόσβασής σας πρέπει να αποτελείται από τουλάχιστον {{length}} χαρακτήρες.',
1768+
form_password_matches_identifier: undefined,
17681769
form_password_not_strong_enough: 'Ο κωδικός πρόσβασής σας δεν είναι αρκετά ισχυρός.',
17691770
form_password_or_identifier_incorrect:
17701771
'Ο κωδικός πρόσβασης ή η διεύθυνση email είναι λανθασμένη. Δοκιμάστε ξανά ή χρησιμοποιήστε άλλη μέθοδο.',

‎packages/localizations/src/en-GB.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,7 @@ export const enGB: LocalizationResource = {
17511751
form_password_compromised__sign_in: undefined,
17521752
form_password_incorrect: 'The password you entered is incorrect. Please try again.',
17531753
form_password_length_too_short: 'Your password is too short. It must be at least 8 characters long.',
1754+
form_password_matches_identifier: undefined,
17541755
form_password_not_strong_enough: 'Your password is not strong enough.',
17551756
form_password_or_identifier_incorrect: 'Password or email address is incorrect. Try again, or use another method.',
17561757
form_password_pwned:

0 commit comments

Comments
 (0)