diff --git a/.changeset/sharp-dancers-hear.md b/.changeset/sharp-dancers-hear.md new file mode 100644 index 00000000000..59ab0005789 --- /dev/null +++ b/.changeset/sharp-dancers-hear.md @@ -0,0 +1,5 @@ +--- +'@clerk/localizations': patch +--- + +add placeholder text for username field in en-GB diff --git a/package.json b/package.json index 900b864776b..7b552753d61 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "build:declarations": "FORCE_COLOR=1 turbo build:declarations --concurrency=${TURBO_CONCURRENCY:-80%} --filter=@clerk/nextjs --filter=@clerk/react --filter=@clerk/shared", "bundlewatch": "turbo run bundlewatch", "changeset": "changeset", + "changeset:add-en-gb": "node scripts/add-en-gb-changeset.mjs", "changeset:empty": "pnpm changeset --empty", "clean": "turbo run clean", "dev": "TURBO_UI=0 FORCE_COLOR=1 turbo dev --filter=@clerk/* --filter=!@clerk/expo --filter=!@clerk/tanstack-react-start --filter=!@clerk/chrome-extension", diff --git a/packages/localizations/src/en-GB.ts b/packages/localizations/src/en-GB.ts index 19b536cdf98..93f7b6c0768 100644 --- a/packages/localizations/src/en-GB.ts +++ b/packages/localizations/src/en-GB.ts @@ -223,7 +223,7 @@ export const enGB: LocalizationResource = { formFieldInputPlaceholder__organizationSlug: 'my-org', formFieldInputPlaceholder__password: 'Enter your password', formFieldInputPlaceholder__phoneNumber: 'Enter your phone number', - formFieldInputPlaceholder__username: undefined, + formFieldInputPlaceholder__username: 'Enter your username', formFieldInput__emailAddress_format: undefined, formFieldLabel__apiKey: 'API key', formFieldLabel__apiKeyDescription: 'Description', diff --git a/scripts/add-en-gb-changeset.mjs b/scripts/add-en-gb-changeset.mjs new file mode 100644 index 00000000000..ffc2ae8acbf --- /dev/null +++ b/scripts/add-en-gb-changeset.mjs @@ -0,0 +1,23 @@ +#!/usr/bin/env node +/** + * Adds a changeset for the en-GB username placeholder fix. + * Equivalent to: pnpm changeset add → select @clerk/localizations → patch → summary. + * Run with: pnpm changeset:add-en-gb + */ +import { writeFileSync } from 'fs'; +import { join } from 'path'; + +const summary = 'Add placeholder text "Enter your username" for username field in en-GB locale'; + +const content = `--- +'@clerk/localizations': patch +--- + +${summary} +`; + +const filename = 'fix-username-placeholder-en-gb.md'; +const filepath = join(process.cwd(), '.changeset', filename); +writeFileSync(filepath, content, 'utf-8'); +console.log(`🦋 Changeset added: .changeset/${filename}`); +console.log(` Run "pnpm changeset add" in your terminal to add more, or commit this file.`);