Skip to content

Commit 47ffecb

Browse files
committed
fix(clerk-js): Add missing localization keys in unstable_errors
1 parent 66ca4d5 commit 47ffecb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/localizations/src/en-US.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ export const enUS: LocalizationResource = {
584584
},
585585
},
586586
unstable__errors: {
587+
identification_deletion_failed: 'You cannot delete your last identification.',
588+
phone_number_exists: 'This phone number is taken. Please try another.',
587589
form_identifier_not_found: '',
588590
captcha_invalid:
589591
'Sign up unsuccessful due to failed security validations. Please refresh the page to try again or reach out to support for more assistance.',

packages/types/src/localization.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ type _LocalizationResource = {
620620
type WithParamName<T> = T &
621621
Partial<Record<`${keyof T & string}__${CamelToSnake<Exclude<FieldId, 'role'>>}`, LocalizationValue>>;
622622
type UnstableErrors = WithParamName<{
623+
identification_deletion_failed: LocalizationValue;
624+
phone_number_exists: LocalizationValue;
623625
form_identifier_not_found: LocalizationValue;
624626
captcha_invalid: LocalizationValue;
625627
form_password_pwned: LocalizationValue;

0 commit comments

Comments
 (0)