agentleFS
PradnyeshpPradnyeshp/Claude-Skills/.claude/skills/i18n/SKILL.md

i18n

Skill2 starsChanged 4 months agoMITView on GitHub

Extract hardcoded user-facing strings into the project's localization system — locale files and translation calls — so the UI can be translated. Use when the user says "extract strings for translation", "internationalize this", "set up i18n", "move text to locale files", "add translation keys", or "make this translatable".

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • volovelySkill

    pr-fix

    This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.

    Also in 3 projects that use this

  • GitHubSkill

    state-management

    CoreAI Sandbox's TanStack Query + mock-JSON data layer. USE WHEN: editing data-fetching hooks (`app/hooks/use*.ts`), adding mock data in `app/data/`, or wiring a component to query state.

    Also in 4 projects that use this

  • MicrosoftSkill

    bump-version

    Bump the VoxelPic version to a user-specified value. USE FOR: setting or updating the project version across all files that embed it. Applies to requests like 'bump version to X.Y.Z', 'set version', or 'update version'.

    Also in 4 projects that use this

  • imehrSkill

    frontend

    Use when building UI components, pages, or features - guides Claude through the approved frontend stack (Next.js 15, React 19, Shadcn, Tailwind) with design-first workflow for complex UIs, enforcing patterns and quality standards

    Also in 4 projects that use this

  • +2 more from CES-Ltd

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only externalize genuine user-facing text.

    line 29
  2. Distinctive:

    Keep keys stable and descriptive (by meaning/location, not by the English text) so translations survive copy edits.

    line 32
  3. Distinctive:

    After extracting, report: strings extracted, keys added, locale files touched, and which locales still need real translations.

    line 33

“Common” is measured: kept by at least 6 in 10 of the 41 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

i18n setup signals

!ls -d locales lang i18n public/locales src/locales translations 2>/dev/null

!grep -rilE "i18next|react-i18next|vue-i18n|formatjs|react-intl|gettext|next-intl|\\bt\\(" --include='*.*' . 2>/dev/null | grep -vE 'node_modules|\.git|dist|build' | head -15

Instructions

Extract hardcoded user-facing strings into the project's i18n system, scoped to $ARGUMENTS if a path was given. If no i18n library is set up yet, identify the idiomatic one for the stack and confirm with the user before introducing it — don't silently add a framework.

Method

  1. Learn the existing convention. From the signals above, find the i18n library, the locale file format (JSON/YAML/PO), the key naming scheme (nested vs flat, feature.component.label), and how translations are called (t('key'), <FormattedMessage>, $t()). Mirror it exactly. If none exists, propose the standard for the framework and wait for confirmation.
  2. Find the real user-facing strings. Scan the target for literal text rendered to users — JSX/template text, button labels, placeholders, aria-labels, validation/error messages, titles. Exclude non-UI strings: log messages, code identifiers, URLs, CSS classes, test fixtures, enum keys, and config.
  3. Replace each with a translation call using a descriptive, conventionally-named key, and add the key + original text to the default locale file. Keep interpolation intact — convert `Hello ${name}` into the library's variable syntax (t('greeting', { name })), not a concatenation.
  4. Handle plurals and rich text with the library's features (plural forms, <Trans>/components for embedded markup) rather than string-splitting, which breaks in other languages.
  5. Don't auto-translate. Populate only the default locale with the real text; add empty/placeholder entries for other existing locales (or leave them to the translation workflow) and flag that they need real translations.

Rules

  1. Only externalize genuine user-facing text. Leave logs, identifiers, and machine strings as literals — over-extraction is as harmful as under-extraction.
  2. Match the project's existing keys, file format, and call style precisely; don't invent a parallel convention.
  3. Preserve meaning and interpolation — never build sentences by concatenating translated fragments; word order differs across languages.
  4. Keep keys stable and descriptive (by meaning/location, not by the English text) so translations survive copy edits.
  5. After extracting, report: strings extracted, keys added, locale files touched, and which locales still need real translations. Run a build/lint to catch a missed import of the translation function.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.