بنقرة واحدة
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.