一键导入
translate
Translate changed English locale keys into all other languages
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Translate changed English locale keys into all other languages
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | translate |
| description | Translate changed English locale keys into all other languages |
| allowed-tools | Read, Write, Edit, Bash, Glob |
Translate changed English locale keys into all other languages.
Here are the current changes to the English locale files:
!`git diff HEAD -- src/locales/en/ 2>/dev/null || echo "No changes detected in English locale files."`
Using the diff above, identify which namespace files changed. For any file that is new (not in git history), treat all keys as added. If the diff is empty, stop and report that there is nothing to translate.
Identify:
Flatten nested objects to dot-notation for comparison (e.g. {"a": {"b": "hi"}} becomes a.b = "hi").
If there are no changes across any namespace, stop and report that there is nothing to translate.
For each other locale directory (de, pt-br, zh, zh-Hant), apply changes to every namespace:
Write the updated JSON files with 2-space indentation.
{{variable}}, {variable}, <1>, %s, etc.glossary.md in this directory for project-specific terminology.de = Germanpt-br = Brazilian Portuguesezh = Simplified Chinesezh-Hant = Traditional Chineseen files.