1---2name: comfy-org-workflow-templates-workflow-templates3description: Managing Translations4---56# Managing Translations78## Overview910The repo supports 11 languages. The English master file is `templates/index.json`. Locale files follow the pattern `templates/index.{locale}.json`:1112| Code | Language | File |13|---|---|---|14| en | English | `templates/index.json` (master) |15| zh | Chinese (Simplified) | `templates/index.zh.json` |16| zh-TW | Chinese (Traditional) | `templates/index.zh-TW.json` |17| ja | Japanese | `templates/index.ja.json` |18| ko | Korean | `templates/index.ko.json` |19| es | Spanish | `templates/index.es.json` |20| fr | French | `templates/index.fr.json` |21| ru | Russian | `templates/index.ru.json` |22| tr | Turkish | `templates/index.tr.json` |23| ar | Arabic | `templates/index.ar.json` |24| pt-BR | Portuguese (Brazil) | `templates/index.pt-BR.json` |2526## How Sync Works2728Run the sync script to propagate changes from English master to all locale files:2930```bash31python3 scripts/sync/sync_data.py --templates-dir templates32```3334### What sync does3536- **Technical fields** (models, date, size, vram, tags, etc.) are auto-copied from English master to all locales.37- **Translatable fields** (`title`, `description`) are preserved if already translated — they are NOT overwritten.38- **New templates** get English fallback text until translated.39- **Tags** are auto-translated using mappings defined in `scripts/data/i18n.json`.4041### Useful flags4243- `--dry-run` — Preview changes without writing files.44- `--force-sync-language-fields` — Overwrite existing translations with English text (destructive — use with caution).4546## Translation Tracking4748`scripts/data/i18n.json` stores:4950- Translation status for each template (per language).51- Tag translation mappings (English → each language).52- Category title translations.5354## Adding Translations for a Template55561. Edit `scripts/data/i18n.json` to add translations under the template's name.572. Run the sync script:5859 ```bash60 python3 scripts/sync/sync_data.py --templates-dir templates61 ```62633. Verify the locale files were updated correctly.6465## Checking Translation Coverage6667- Look at `scripts/.output/missing_translations_report.json` for untranslated entries.68- Or manually compare a locale file against `index.json` to find templates with English-only text.6970## Site-Level i18n (Separate System)7172The template site (`site/`) has its own i18n system for UI strings — this is separate from the template translation system above:7374- `site/src/i18n/config.ts` — Language definitions.75- `site/src/i18n/ui.ts` — UI string translations.76- `site/src/i18n/utils.ts` — URL localization helpers.77- Site sync: `pnpm run sync` (from `site/` directory) reads all locale index files.7879## After Changes, Always Run8081```bash82python3 scripts/sync/sync_data.py --templates-dir templates83python scripts/validate/validate_templates.py84```8586## Rules8788- English `index.json` is the master — always edit it first for structural changes.89- Never manually edit locale files for technical fields — use the sync script.90- Translatable fields (`title`, `description`) CAN be manually edited in locale files.91- After adding a new template to `index.json`, always run sync to propagate to all locales.92- Tag translations go in `scripts/data/i18n.json`, not in the locale files directly.9394---95> Source: [Comfy-Org/workflow_templates](https://github.com/Comfy-Org/workflow_templates) — distributed by [TomeVault](https://tomevault.io).96<!-- tomevault:4.0:skill_md:2026-06-30 -->
Run npx skillmds@latest add tomevault-io/comfy-org-workflow-templates-workflow-templates in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Managing Translations It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.