Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/silver-gifts-smile.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
---

Replaces hard-coded string `"Add a passkey"` with a new localization key `userProfile.start.passkeysSection.primaryButton`
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const AddPasskeyButton = ({ onClick }: { onClick?: () => void }) => {
return (
<ProfileSection.ArrowButton
id='passkeys'
localizationKey={'Add a passkey'}
localizationKey={localizationKeys('userProfile.start.passkeysSection.primaryButton')}
onClick={handleCreatePasskey}
/>
);
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 @@ -864,6 +864,7 @@ export const enUS: LocalizationResource = {
},
},
passkeysSection: {
primaryButton: 'Add a passkey',
menuAction__destructive: 'Remove',
menuAction__rename: 'Rename',
title: 'Passkeys',
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 @@ -435,6 +435,7 @@ type _LocalizationResource = {
};
passkeysSection: {
title: LocalizationValue;
primaryButton: LocalizationValue;
menuAction__rename: LocalizationValue;
menuAction__destructive: LocalizationValue;
};
Expand Down