I18n expert

From seaworld008/Commonly-used-high-value-skills · View interactive version

I18n expert is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Implement or audit UI internationalization: translation keys, locale files, pluralization, formatting, hard-coded strings, and parity checks.

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. For a read-only audit, use existing locale files, perform steps 3–4 and report findings. If locale resources are absent, report that coverage gap.

2) Set up a missing baseline only for an authorized implementation that needs it

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) For an authorized fix, 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.