I18n expert

From daymade/claude-code-skills · View interactive version

I18n expert is an AI agent skill from the GitHub repository daymade/claude-code-skills. This skill should be used when setting up, auditing, or enforcing internationalization/localization in UI codebases (React/TS, i18next or similar, JSON locales), including installing/configuring the i18n framework, replacing hard-coded strings, ensuring en-US/zh-CN coverage, mapping error codes to l

How to use this skill

Skill file

I18n Expert

Overview

Deliver a complete i18n setup + audit pass: configure the i18n framework, replace user-facing strings with keys, ensure locale parity, and validate pluralization/formatting for en-US and zh-CN.

Core Capabilities

Scope Inputs (ask if unclear)

Workflow (Audit -> Fix -> Validate)

1) Confirm scope and locale targets

2) Setup i18n baseline (if missing)

3) Audit key usage and locale parity

```bash

python scripts/i18n_audit.py --src <src-root> --locale <path/to/en-US.json> --locale <path/to/zh-CN.json>

```

4) Find raw user-facing strings

```bash

rg -n --glob '<src>/*/.{ts,tsx,js,jsx}' "<[^>]+>[^<{][A-Za-z][^<{]<"

rg -n --glob '<src>/*/.{ts,tsx,js,jsx}' "aria-label=\"[^\"]+\"|title=\"[^\"]+\"|placeholder=\"[^\"]+\""

```

5) Replace strings with keys

6) Localize error handling (critical)

7) Update locale files

8) Validate

Guardrails

Deliverables (expected outputs)

Architecture Guidance (keep concise)

Performance Notes (short)

Failure Modes (watchlist)

Validation Checklist (short)

Resources

scripts/

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.