Skip to content

Commit 971e0b3

Browse files
committed
chore(repo): Consolidate password confirmation changesets
1 parent 0074254 commit 971e0b3

51 files changed

Lines changed: 203 additions & 156 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@clerk/localizations': minor
3+
'@clerk/shared': minor
4+
'@clerk/ui': minor
5+
---
6+
7+
Show how many password attempts remain when a user enters the wrong current password while changing their password or during reverification, and explain that the session has ended once the attempts run out. This only applies to instances that enable password confirmation protection, which is off by default.
8+
9+
- `ClerkAPIError.meta.remainingAttempts` holds the attempts left in the current session. `0` means the session has ended.
10+
- Customize the messages with the `unstable__errors.password_confirmation_attempt_remaining`, `unstable__errors.password_confirmation_attempts_remaining` (receives `{{remainingAttempts}}`), and `unstable__errors.password_confirmation_session_ended` localization keys.

‎.changeset/small-mice-change.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/tidy-password-attempts.md‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,9 +1774,10 @@ export const arSA: LocalizationResource = {
17741774
requireUppercase: 'حرف كبير',
17751775
sentencePrefix: 'كلمة السر يجب أن تحتوي على',
17761776
},
1777-
password_confirmation_attempt_remaining: undefined,
1778-
password_confirmation_attempts_remaining: undefined,
1779-
password_confirmation_session_ended: undefined,
1777+
password_confirmation_attempt_remaining: 'كلمة المرور غير صحيحة. لديك محاولة واحدة متبقية.',
1778+
password_confirmation_attempts_remaining: 'كلمة المرور غير صحيحة. عدد المحاولات المتبقية: {{remainingAttempts}}.',
1779+
password_confirmation_session_ended:
1780+
'انتهت جلستك لأنك وصلت إلى الحد الأقصى لمحاولات تأكيد كلمة المرور. سجّل الدخول مرة أخرى للمتابعة.',
17801781
phone_number_exists: 'هذا الرقم مأخوذ الرجاء أختيار رقم آخر',
17811782
protect_check_aborted: undefined,
17821783
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,9 +1785,10 @@ export const beBY: LocalizationResource = {
17851785
requireUppercase: 'літару ў верхнім рэгістры',
17861786
sentencePrefix: 'Ваш пароль павінен утрымліваць',
17871787
},
1788-
password_confirmation_attempt_remaining: undefined,
1789-
password_confirmation_attempts_remaining: undefined,
1790-
password_confirmation_session_ended: undefined,
1788+
password_confirmation_attempt_remaining: 'Няправільны пароль. У вас засталася 1 спроба.',
1789+
password_confirmation_attempts_remaining: 'Няправільны пароль. Засталося спроб: {{remainingAttempts}}.',
1790+
password_confirmation_session_ended:
1791+
'Ваш сеанс завершаны, бо вы дасягнулі ліміту спроб пацвярджэння пароля. Увайдзіце зноў, каб працягнуць.',
17911792
phone_number_exists: 'Гэты нумар тэлефона ўжо заняты. Калі ласка, паспрабуйце іншы.',
17921793
protect_check_aborted: undefined,
17931794
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,9 +1778,10 @@ export const bgBG: LocalizationResource = {
17781778
requireUppercase: 'главна буква',
17791779
sentencePrefix: 'Вашата парола трябва да съдържа',
17801780
},
1781-
password_confirmation_attempt_remaining: undefined,
1782-
password_confirmation_attempts_remaining: undefined,
1783-
password_confirmation_session_ended: undefined,
1781+
password_confirmation_attempt_remaining: 'Грешна парола. Остава ви 1 опит.',
1782+
password_confirmation_attempts_remaining: 'Грешна парола. Остават ви {{remainingAttempts}} опита.',
1783+
password_confirmation_session_ended:
1784+
'Сесията ви приключи, защото достигнахте лимита на опитите за потвърждение на паролата. Влезте отново, за да продължите.',
17841785
phone_number_exists: 'Този телефонен номер е зает. Моля, опитайте с друг.',
17851786
protect_check_aborted: undefined,
17861787
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,9 +1803,10 @@ export const bnIN: LocalizationResource = {
18031803
requireUppercase: 'একটি বড় হাতের অক্ষর',
18041804
sentencePrefix: 'আপনার পাসওয়ার্ডে অবশ্যই থাকতে হবে',
18051805
},
1806-
password_confirmation_attempt_remaining: undefined,
1807-
password_confirmation_attempts_remaining: undefined,
1808-
password_confirmation_session_ended: undefined,
1806+
password_confirmation_attempt_remaining: 'ভুল পাসওয়ার্ড। আপনার আর ১টি প্রচেষ্টা বাকি আছে।',
1807+
password_confirmation_attempts_remaining: 'ভুল পাসওয়ার্ড। আপনার আর {{remainingAttempts}}টি প্রচেষ্টা বাকি আছে।',
1808+
password_confirmation_session_ended:
1809+
'পাসওয়ার্ড নিশ্চিতকরণের প্রচেষ্টার সীমায় পৌঁছানোর কারণে আপনার সেশন শেষ হয়েছে। চালিয়ে যেতে আবার সাইন ইন করুন।',
18091810
phone_number_exists: 'এই ফোন নম্বর ব্যবহৃত হয়েছে। দয়া করে অন্য একটি ব্যবহার করুন।',
18101811
protect_check_aborted: undefined,
18111812
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,9 +1791,10 @@ export const caES: LocalizationResource = {
17911791
requireUppercase: 'una lletra majúscula',
17921792
sentencePrefix: 'La teva contrasenya ha de contenir',
17931793
},
1794-
password_confirmation_attempt_remaining: undefined,
1795-
password_confirmation_attempts_remaining: undefined,
1796-
password_confirmation_session_ended: undefined,
1794+
password_confirmation_attempt_remaining: 'Contrasenya incorrecta. Et queda 1 intent.',
1795+
password_confirmation_attempts_remaining: 'Contrasenya incorrecta. Et queden {{remainingAttempts}} intents.',
1796+
password_confirmation_session_ended:
1797+
"La teva sessió ha finalitzat perquè has arribat al límit d'intents de confirmació de la contrasenya. Torna a iniciar sessió per continuar.",
17971798
phone_number_exists: "Aquest número de telèfon ja està en ús. Si us plau, prova'n un altre.",
17981799
protect_check_aborted: undefined,
17991800
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,9 +1790,10 @@ export const csCZ: LocalizationResource = {
17901790
requireUppercase: 'velké písmeno',
17911791
sentencePrefix: 'Vaše heslo musí obsahovat',
17921792
},
1793-
password_confirmation_attempt_remaining: undefined,
1794-
password_confirmation_attempts_remaining: undefined,
1795-
password_confirmation_session_ended: undefined,
1793+
password_confirmation_attempt_remaining: 'Nesprávné heslo. Zbývá vám 1 pokus.',
1794+
password_confirmation_attempts_remaining: 'Nesprávné heslo. Počet zbývajících pokusů: {{remainingAttempts}}.',
1795+
password_confirmation_session_ended:
1796+
'Vaše relace byla ukončena, protože jste dosáhli limitu pokusů o potvrzení hesla. Pro pokračování se znovu přihlaste.',
17961797
phone_number_exists: 'Toto telefonní číslo se používá. Zkuste prosím jiný.',
17971798
protect_check_aborted: undefined,
17981799
protect_check_already_resolved: undefined,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,9 +1775,10 @@ export const daDK: LocalizationResource = {
17751775
requireUppercase: 'et stort bogstav',
17761776
sentencePrefix: 'Din adgangskode skal indeholde',
17771777
},
1778-
password_confirmation_attempt_remaining: undefined,
1779-
password_confirmation_attempts_remaining: undefined,
1780-
password_confirmation_session_ended: undefined,
1778+
password_confirmation_attempt_remaining: 'Forkert adgangskode. Du har 1 forsøg tilbage.',
1779+
password_confirmation_attempts_remaining: 'Forkert adgangskode. Du har {{remainingAttempts}} forsøg tilbage.',
1780+
password_confirmation_session_ended:
1781+
'Din session er afsluttet, fordi du har nået grænsen for forsøg på at bekræfte adgangskoden. Log ind igen for at fortsætte.',
17811782
phone_number_exists: 'Dette telefonnummer er allerede taget. Prøv et andet.',
17821783
protect_check_aborted: undefined,
17831784
protect_check_already_resolved: undefined,

0 commit comments

Comments
 (0)