Skip to content

Commit

Permalink
chore(types,localizations): New localization keys for max length exce…
Browse files Browse the repository at this point in the history
…eded validation
  • Loading branch information
nikospapcom committed Jul 26, 2023
1 parent d0816ee commit d433b83
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/mighty-days-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@clerk/localizations': patch
'@clerk/types': patch
---

New localization keys for max length exceeded validation:
- Organization name (form_param_max_length_exceeded__name)
- First name (form_param_max_length_exceeded__first_name)
- Last name (form_param_max_length_exceeded__last_name)
3 changes: 3 additions & 0 deletions packages/localizations/src/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ export const enUS: LocalizationResource = {
pwned: 'If you use this password elsewhere, you should change it.',
},
},
form_param_max_length_exceeded__name: 'Name should not exceed 256 characters.',
form_param_max_length_exceeded__first_name: 'First name should not exceed 256 characters.',
form_param_max_length_exceeded__last_name: 'Last name should not exceed 256 characters.',
},
dates: {
previous6Days: "Last {{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/localization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,4 +697,5 @@ type UnstableErrors = WithParamName<{
pwned: LocalizationValue;
};
};
form_param_max_length_exceeded: LocalizationValue;
}>;

0 comments on commit d433b83

Please sign in to comment.