I18n Localization skill for Claude

Use when adding UI text, adding or shipping a language, reviewing translation files, or building i18n into an app. Checks missing keys, placeholders and CLDR plural forms with locale_sync.py, finds hardcoded strings with hardcoded_strings.py, and builds a pseudo-locale with pseudo_localize.py.

I18n Localization SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

i18n Localization

Portability: 3 stdlib Python scripts. No network, no translation service. They check and generate files; they never translate text or call an API.

A release with a new language usually breaks in the same places: keys added in English and never synced, a placeholder renamed by a translator, Russian or Arabic files that copied English's two plural forms, UI text that never went through t(), and dates formatted in the server's locale. This skill makes each of those a check that fails before the release, not a bug report after it.

Workflow

# 1 - Translation files: keys, placeholders, ICU syntax, CLDR plural forms
python scripts/locale_sync.py locales/ --source-locale en
# 2 - Code: user-facing text that bypasses t(), concatenation, locale-less formatting
python scripts/hardcoded_strings.py src/
# 3 - Layout: generate a pseudo-locale and click through the app in it
python scripts/pseudo_localize.py locales/en/common.json -o locales/en-XA/common.json
python scripts/pseudo_localize.py locales/en/common.json --bidi -o locales/ar-XB/common.json

Step 1 reads JSON/ARB (i18next or ICU), .properties, Apple .strings, Android strings.xml and gettext .po, pairs each target with the source file of the same namespace, and blocks on missing or empty keys, changed placeholders, ICU syntax errors, plural/select without other, a zero branch that can never match, and plural categories the target locale needs (ru few/many, ar six forms), using the embedded CLDR 49 table. Untranslated values, orphan keys, fuzzy entries and markup drift are warnings.

Step 2 blocks on literal text between tags and literal user-facing attributes (placeholder, alt, aria-label, title...), and warns on literals rendered from {cond ? 'Saving...' : ...}, t('a') + x concatenation, toLocaleString() with no locale, '$' + amount and hardcoded date patterns. It is a text heuristic: read each finding. Use --warn-only to adopt it on a legacy codebase, i18n-ignore on a line, and .i18n-allow for brand names.

Step 3 accents, pads (by translation-growth rates) and brackets every string while keeping placeholders and ICU syntax intact. Plain English on screen is a hardcoded string; a cut-off [[... is truncation; [[a]] [[b]] is concatenation.

Hard rules

  • Never concatenate translated fragments. One message per sentence, with named placeholders and a plural branch.
  • Plural forms follow CLDR for the target locale, not English. Never copy _one/_other into ru, pl, uk, cs, ar, he files and call them done.
  • =0, not zero, for an empty-count message in ICU.
  • Pass the locale to every formatter. Currency comes from the data, not the UI locale.
  • Placeholders are code. A translator may move them, never rename or drop them; use positional %1$s where order can change.
  • Do not machine-translate to make the checker pass. A missing translation falls back to the source language; a wrong one ships silently. Mark gaps for a translator instead.

Scripts

ScriptRoleExit codes
scripts/locale_sync.pyTranslation files vs source locale: keys, placeholders, ICU, CLDR plurals, gettext0 · 2 warnings · 3 bad input · 4 blocked
scripts/hardcoded_strings.pyReact/Vue/Svelte/HTML: untranslated text, concatenation, locale-less formatting0 · 2 · 3 · 4
scripts/pseudo_localize.pyen-XA (or --bidi ar-XB) pseudo-locale from JSON/ARB/.properties0 · 3

All support --help, --sample and --output json.

References and assets

How to install I18n Localization

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/skills/i18n-localization#main ~/.claude/skills/i18n-localization

Codex

npx degit alirezarezvani/claude-skills/engineering/skills/i18n-localization#main ~/.codex/skills/i18n-localization

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the I18n Localization skill do?

Use when adding UI text, adding or shipping a language, reviewing translation files, or building i18n into an app. Checks missing keys, placeholders and CLDR plural forms with locale_sync.py, finds hardcoded strings with hardcoded_strings.py, and builds a pseudo-locale with pseudo_localize.py.

+How do I install I18n Localization in Claude Code?

Copy the skill folder into ~/.claude/skills/i18n-localization, for example with "npx degit alirezarezvani/claude-skills/engineering/skills/i18n-localization#main ~/.claude/skills/i18n-localization". Claude Code loads it automatically and uses it when a task matches.

+Does I18n Localization work with ChatGPT or Codex?

Yes. I18n Localization uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/i18n-localization. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is I18n Localization free?

I18n Localization is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related design & frontend skills

  1. Design

    Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, MuAPI, or UberLLM…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  2. Frontend Design

    Official

    Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one.

    anthropics/skills★ 197k
  3. Ui Ux Pro Max

    UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  4. Interview System Designer

    Use when designing a hiring loop, competency matrix, scoring rubric or question bank, or checking interviewer calibration.

    alirezarezvani/claude-skills★ 30k
  5. Md Document

    Use when converting long-form markdown (spec, RFC, report, plan) into a single-file HTML page with sticky TOC, search and code-copy.

    alirezarezvani/claude-skills★ 30k
  6. Observability Designer

    Use when adding metrics, logs and traces to a service, fixing noisy alerts or designing dashboards.

    alirezarezvani/claude-skills★ 30k
  7. Readme Polish

    Use when an existing README must be upgraded, audited, or made scannable: polish/美化/升级/优化/打磨 README, add badges, mermaid, callouts, or…

    alirezarezvani/claude-skills★ 30k
  8. Saas Scaffolder

    Use when starting a new SaaS app with auth, database, Stripe billing and a dashboard (Next.js App Router, TypeScript, Tailwind, shadcn/ui,…

    alirezarezvani/claude-skills★ 30k
  9. Senior Frontend

    Build and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size.

    alirezarezvani/claude-skills★ 30k

See all design & frontend skills →

More skills from alirezarezvani

  1. Inbox Setup

    Use when setting up email triage for the first time, before inbox-triage, or when priorities change.

    alirezarezvani/claude-skills★ 30k
  2. Inbox Triage

    Use when the user wants their inbox processed ('triage my inbox', 'check my email').

    alirezarezvani/claude-skills★ 30k
  3. Incident Commander

    Use when declaring or running a production incident or outage, or writing its post-incident review.

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.