Skip to content

Commit 68259a2

Browse files
authored
fix(clerk-js,localizations,types): Add formFieldHintText__slug key (clerk#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
1 parent e592565 commit 68259a2

5 files changed

Lines changed: 12 additions & 1 deletion

File tree

.changeset/cyan-pots-invite.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@clerk/clerk-js": patch
3+
"@clerk/localizations": patch
4+
"@clerk/types": patch
5+
---
6+
7+
Enables you to translate the tooltip hint while creating an organization through the `formFieldHintText__slug` key

packages/clerk-js/src/ui/elements/FormControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export const FormControl = forwardRef<HTMLInputElement, PropsWithChildren<FormCo
352352
const Icon = icon ? (
353353
<Flex
354354
as={'span'}
355-
title='A slug is a human-readable ID that must be unique.  It’s often used in URLs.'
355+
title={t(localizationKeys('formFieldHintText__slug'))}
356356
>
357357
<IconCustomizable
358358
icon={icon}

packages/localizations/src/de-DE.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export const deDE: LocalizationResource = {
4242
'Der Bestätigungslink ist abgelaufen. Bitte fordern Sie einen neuen Link an.',
4343
formFieldAction__forgotPassword: 'Passwort vergessen?',
4444
formFieldHintText__optional: 'Optional',
45+
formFieldHintText__slug:
46+
'Der Slug ist eine für Menschen lesbare ID. Sie muss einzigartig sein und wird oft in URLs verwendet.',
4547
formButtonPrimary: 'Fortsetzen',
4648
signInEnterPasswordTitle: 'Geben Sie Ihr Passwort ein',
4749
backButton: 'Zurück',

packages/localizations/src/en-US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const enUS: LocalizationResource = {
6464
formFieldError__verificationLinkExpired: 'The verification link expired. Please request a new link.',
6565
formFieldAction__forgotPassword: 'Forgot password?',
6666
formFieldHintText__optional: 'Optional',
67+
formFieldHintText__slug: 'A slug is a human-readable ID that must be unique. It’s often used in URLs.',
6768
formButtonPrimary: 'Continue',
6869
signInEnterPasswordTitle: 'Enter your password',
6970
backButton: 'Back',

packages/types/src/localization.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ type _LocalizationResource = {
8181
formFieldError__verificationLinkExpired: LocalizationValue;
8282
formFieldAction__forgotPassword: LocalizationValue;
8383
formFieldHintText__optional: LocalizationValue;
84+
formFieldHintText__slug: LocalizationValue;
8485
formButtonPrimary: LocalizationValue;
8586
signInEnterPasswordTitle: LocalizationValue;
8687
backButton: LocalizationValue;

0 commit comments

Comments
 (0)