i18n-expert
10
总安装量
8
周安装量
#29181
全站排名
安装命令
npx skills add https://github.com/aleister1102/skills --skill i18n-expert
Agent 安装分布
trae
8
opencode
8
cursor
8
kiro-cli
8
github-copilot
8
Skill 文档
I18n Expert
Goal
Deliver a safe, testable localization setup and audit for UI codebases while preserving user-visible behavior.
Guardrails
- Do not add new locales unless requested.
- Never show raw error messages to users; map to localized keys.
- Preserve existing keys and placeholders unless explicitly asked to rename.
- Keep descriptions, accessibility text, and metadata localized where user-facing.
Inputs (confirm if unclear)
- Framework and routing style.
- Current i18n state (none, partial, legacy).
- Target locales (default: en-US + zh-CN).
- Translation quality requirements (AI vs professional vs manual).
- Locale file format (JSON, YAML, PO, XLIFF).
Workflow (short)
- Establish baseline.
- Identify current i18n framework and locale file layout.
- Audit strings and key parity.
- Use
scripts/i18n_audit.pyif available.
- Use
- Replace hard-coded strings.
- Convert UI text, accessibility labels, and metadata to keys.
- Validate and test.
- Re-run audits, verify pluralization, and update tests.
Common Moves
- Replace inline strings with
t('namespace.key'). - Introduce plural forms with
{ count }handling. - Group keys by feature and keep locale files aligned.
- Add language switching and persistence when needed.
References (load when needed)
i18n-expert/references/workflow.md: full audit-to-fix process.i18n-expert/references/audit.md: search patterns and audit commands.i18n-expert/references/architecture.md: key structure, routing, SEO, RTL, perf.i18n-expert/references/validation.md: checklists and failure modes.