Skip to content

Commit

Permalink
fix(clerk-js,localizations,types): Add formFieldHintText__slug key (#…
Browse files Browse the repository at this point in the history
…1811)

* fix(clerk-js,localizations,types): Add `formFieldHintText__slug` key

Enables you to translate the tooltip hint while creating an organization

* fix(localizations): Add german translation

* Create cyan-pots-invite.md
  • Loading branch information
LekoArts authored Oct 2, 2023
1 parent e592565 commit 68259a2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/cyan-pots-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@clerk/clerk-js": patch
"@clerk/localizations": patch
"@clerk/types": patch
---

Enables you to translate the tooltip hint while creating an organization through the `formFieldHintText__slug` key
2 changes: 1 addition & 1 deletion packages/clerk-js/src/ui/elements/FormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export const FormControl = forwardRef<HTMLInputElement, PropsWithChildren<FormCo
const Icon = icon ? (
<Flex
as={'span'}
title='A slug is a human-readable ID that must be unique.  It’s often used in URLs.'
title={t(localizationKeys('formFieldHintText__slug'))}
>
<IconCustomizable
icon={icon}
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/de-DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const deDE: LocalizationResource = {
'Der Bestätigungslink ist abgelaufen. Bitte fordern Sie einen neuen Link an.',
formFieldAction__forgotPassword: 'Passwort vergessen?',
formFieldHintText__optional: 'Optional',
formFieldHintText__slug:
'Der Slug ist eine für Menschen lesbare ID. Sie muss einzigartig sein und wird oft in URLs verwendet.',
formButtonPrimary: 'Fortsetzen',
signInEnterPasswordTitle: 'Geben Sie Ihr Passwort ein',
backButton: 'Zurück',
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const enUS: LocalizationResource = {
formFieldError__verificationLinkExpired: 'The verification link expired. Please request a new link.',
formFieldAction__forgotPassword: 'Forgot password?',
formFieldHintText__optional: 'Optional',
formFieldHintText__slug: 'A slug is a human-readable ID that must be unique. It’s often used in URLs.',
formButtonPrimary: 'Continue',
signInEnterPasswordTitle: 'Enter your password',
backButton: 'Back',
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 @@ -81,6 +81,7 @@ type _LocalizationResource = {
formFieldError__verificationLinkExpired: LocalizationValue;
formFieldAction__forgotPassword: LocalizationValue;
formFieldHintText__optional: LocalizationValue;
formFieldHintText__slug: LocalizationValue;
formButtonPrimary: LocalizationValue;
signInEnterPasswordTitle: LocalizationValue;
backButton: LocalizationValue;
Expand Down

0 comments on commit 68259a2

Please sign in to comment.