
I18n Expert
FreeStreamline your internationalization process effortlessly.
Free · Opens the source repo
What I18n Expert does
I18n Expert is a specialized tool designed for developers and designers who need to implement and audit internationalization (i18n) in their UI codebases. This skill is particularly useful when working with frameworks like React, Next.js, or Vue, and supports various localization formats such as JSON, YAML, and XLIFF. It provides a comprehensive approach to setting up the i18n framework, ensuring that user-facing strings are properly replaced with keys, and validating that the necessary locales are covered, specifically en-US and zh-CN.
The skill guides users through a structured workflow that includes auditing existing i18n setups, fixing any issues found, and validating the final implementation. Users can expect to have their i18n framework configured, hard-coded strings replaced with keys, and locale files organized according to best practices. The skill also emphasizes the importance of localization quality, offering options for translation generation through AI, professional services, or manual input, depending on the project's needs.
Moreover, I18n Expert includes functionality for validating pluralization and formatting, ensuring that all aspects of the localization process are addressed. The skill is particularly beneficial for teams that need to ensure consistency across different locales while maintaining a high standard of user experience. By automating many of the tedious aspects of i18n, this skill allows developers to focus on building features rather than getting bogged down in localization details.
Overall, I18n Expert is an essential tool for any development team looking to enhance their application's internationalization capabilities, making it easier to reach a global audience with localized content.
When to use it
Use I18n Expert when starting a new project that requires internationalization or when auditing an existing project for localization compliance.
When not to use it
This skill may not be suitable for projects that do not require localization or for teams that already have a robust i18n process in place.
What you can build with it
New Project Setup
When starting a new application, use I18n Expert to establish a solid internationalization framework from the beginning.
Auditing Existing Applications
For existing projects, run an audit to identify and fix localization issues, ensuring compliance with i18n standards.
Localization Quality Assurance
Utilize the skill to validate translation quality and consistency across different locales, enhancing user experience.
How to install I18n Expert
View source1. Install with the skills CLI
npx skills add daymade/claude-code-skills/i18n-expert --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by daymadeI18n 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
- Library selection and setup (React, Next.js, Vue).
- Key architecture and locale file organization.
- Translation generation and quality strategy (AI, professional, manual).
- Routing and language detection/switching.
- SEO and metadata localization (when applicable).
- RTL support (only if RTL locales are in scope).
Scope Inputs (ask if unclear)
- Framework and routing style.
- Existing i18n state (none, partial, legacy).
- Target locales (default: en-US + zh-CN).
- Translation quality needs (AI vs professional vs manual).
- Locale formats in use (JSON, YAML, PO, XLIFF).
- Formality/cultural requirements (if any).
Workflow (Audit -> Fix -> Validate)
- Confirm scope and locale targets
- Identify the i18n framework and locale locations.
- Confirm locales; default to en-US + zh-CN when specified.
- Setup i18n baseline (if missing)
- Choose a framework-appropriate library (e.g., React: react-i18next; Next.js: next-intl; Vue: vue-i18n).
- Install packages and create the i18n entry/config file.
- Wire the provider at the app root and load locale resources.
- Add a language switcher and persistence (route/param/localStorage) as appropriate.
- Establish locale file layout and key namespaces.
- If routing is locale-aware, define the locale segment strategy early (subpath, subdomain, query param).
- If metadata is user-facing, include translation for titles/descriptions.
- Audit key usage and locale parity
- Run:
python scripts/i18n_audit.py --src <src-root> --locale <path/to/en-US.json> --locale <path/to/zh-CN.json> - Treat missing keys/parity gaps as blockers.
- Manually verify dynamic keys (
t(var)).
- Find raw user-facing strings
- Search:
rg -n --glob '<src>/**/*.{ts,tsx,js,jsx}' "<[^>]+>[^<{]*[A-Za-z][^<{]*<" rg -n --glob '<src>/**/*.{ts,tsx,js,jsx}' "aria-label=\"[^\"]+\"|title=\"[^\"]+\"|placeholder=\"[^\"]+\"" - Localize accessibility labels.
- Replace strings with keys
- Use
t('namespace.key')for UI text. - For plurals use
t('key', { count })+_one/_otherkeys. - Use Intl/app formatters for time/date/number.
- Localize error handling (critical)
- Map error codes to localized keys; show localized UI only.
- Log raw error details only.
- Provide localized fallback for unknown codes.
- Update locale files
- Add missing keys in both locales.
- Keep placeholders consistent; avoid renames unless requested.
- Generate translations using the agreed method; preserve placeholders and plural rules.
- Validate
- Re-run the audit until missing/parity issues are zero.
- Validate JSON (e.g.,
python -m json.tool <file>). - Update tests asserting visible text.
Guardrails
- Never expose raw
error.messageto UI; show localized strings only. - Do not add extra locales unless explicitly requested.
- Prefer structured namespaces (e.g.,
errors.*,buttons.*,workspace.*). - Keep translations concise and consistent.
- Some technical/brand terms should remain untranslated (e.g., product name, API, MCP, Bash).
Deliverables (expected outputs)
- i18n config/provider wiring.
- Locale files for each target language.
- Replaced UI strings with stable keys.
- Language switcher and persistence (if applicable).
- Updated tests for visible text.
Architecture Guidance (keep concise)
- Key structure: prefer nested namespaces by area (e.g.,
common.buttons.save,pricing.tier.pro). - File layout: one file per locale or per-locale namespaces; keep keys in sync across locales.
- Placeholders: preserve
{name}/{{name}}exactly; validate plurals by locale rules. - Formatting: use Intl/app helpers for date, time, number, and list formatting.
- SEO/metadata: localize titles and descriptions if the app exposes them.
- RTL: only needed for RTL locales; use logical CSS properties and test layout.
- Non-web surfaces (Electron main-process dialogs, CLI prompts, native menus) need localization too.
Performance Notes (short)
- Lazy-load locale bundles when the app supports it.
- Split large locale files by namespace.
Failure Modes (watchlist)
- Missing translations: fall back to default locale and log warnings.
- RTL layout issues: verify logical CSS and test pages.
- SEO missing: ensure alternates and metadata are localized when applicable.
Validation Checklist (short)
- No missing keys and no raw UI strings.
- Locale switching works and persists.
- Plurals and formatting verified in both locales.
- Fallback locale configured.
Resources
scripts/
scripts/i18n_audit.py: Extractst('key')usage and compares against locale JSON files.
Frequently asked questions about I18n Expert
Similar skills
Playwright Component Testing
Test React and Vue components in isolation with Playwright.
Fluent UI Blazor
Integrate Fluent UI components in Blazor applications effortlessly.
Build MCP App
Create interactive UI widgets for MCP servers.
Web Design Reviewer
Identify and fix design issues in websites efficiently.
Markstream Install
Seamlessly integrate Markstream for Markdown rendering.
GSAP & Framer Scroll Animation
Create advanced scroll animations effortlessly.
