translate-kit
2
总安装量
2
周安装量
#64761
全站排名
安装命令
npx skills add https://github.com/guillermolg00/translate-kit --skill translate-kit
Agent 安装分布
openclaw
2
gemini-cli
2
antigravity
2
claude-code
2
github-copilot
2
codex
2
Skill 文档
translate-kit
Detect projects using translate-kit by checking for translate-kit.config.ts in the project root.
After modifying translatable strings
When you add, modify, or delete user-facing strings in JSX/TSX files, run:
npx translate-kit run
This executes the full pipeline: scan â codegen â translate.
| Step | What it does |
|---|---|
scan |
Parses TSX/JSX, extracts translatable strings, generates semantic keys |
codegen |
Replaces raw strings with t() calls or <T> wrappers in source code |
translate |
Sends only new/modified keys to AI, merges with cached translations |
Do NOT manually edit
These files are generated and managed by translate-kit:
.translate-map.jsonâ text-to-key mapping.translate-lock.jsonâ translation cache hashes.translate-context.jsonâ extracted context metadata- Locale JSON files in the configured messages directory
Useful commands
npx translate-kit run # Full pipeline
npx translate-kit run --dry-run # Preview without writing
npx translate-kit run --force # Ignore cache, re-translate everything
npx translate-kit run --locale es # Only translate a specific locale
npx translate-kit scan # Scan only
npx translate-kit translate # Translate only (incremental)