docs-i18n-translate
Skill by Comfy-Org
Translates ComfyUI Mintlify docs from English MDX into ja, zh and ko using translate-i18n.ts. It skips unchanged pages, splits long pages into chunks and updates only new or changed changelog blocks. Built for maintainers of the ComfyUI docs.
Install docs-i18n-translate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Comfy-Org/docs /tmp/docs && mkdir -p ~/.claude/skills && cp -r /tmp/docs/.cursor/skills/docs-i18n-translate ~/.claude/skills/docs-i18n-translateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Comfy-Org/docs /tmp/docs && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/docs/.cursor/skills/docs-i18n-translate ~/.gemini/antigravity-cli/skills/docs-i18n-translateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install docs-i18n-translate in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through translating ComfyUI Mintlify documentation from English MDX into Japanese, Chinese and Korean. English files are the source of truth. Translated pages are written to per-language folders and snippets folders, and the work runs through the translate-i18n.ts script.
Translation is incremental. Each file stores a translationSourceHash in its frontmatter, so unchanged English pages are skipped. Long pages are split into chunks, and the changelog is updated block by block. The skill also covers glossary terms, truncation checks and docs.json navigation sync, which runs only when requested. It is aimed at maintainers who update ComfyUI docs and keep the translated pages in step.
Written from the project's SKILL.md and checked against it.
What it can do
- pnpm translateTranslates pending English pages and snippets into all configured languages.
- pnpm translate:dry-runPreviews the pending translation work.
- pnpm translate:check-truncationScans translated output for truncated text.
- pnpm translate:repair-truncatedRe-translates files flagged as truncated.
- pnpm translate:repair-fencesAppends missing closing code fences without calling the API.
- pnpm translate:sync-hashRefreshes hashes after manual zh, ja or ko edits, without calling the API.
- pnpm translate:sync-docs-jsonSyncs docs.json navigation paths only.
- pnpm glossary:syncRebuilds the glossary from the ComfyUI frontend locales.
- Changelog update_blocksTranslates only new or changed changelog blocks, identified by label and block hash.
What you need
- Bun
- pnpm
- An OpenAI-compatible API endpoint and key (TRANSLATE_API_BASE_URL, TRANSLATE_API_KEY)
Try asking
- Translate the English pages I changed into ja, zh and ko
- Dry run the translation to see which docs are still pending
- Check the zh and ko output for truncated translations
Good to know
- pnpm translate only handles MDX and does not edit docs.json.
- Do not hand-edit glossary/frontend files; run glossary:sync instead.
- Pages under skip_paths, such as built-in-nodes, are not translated automatically.
- Requires Bun.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .cursor/skills/docs-i18n-translate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to docs-i18n-translate
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
docs-i18n-translate: common questions
Does this skill update docs.json?
Not during normal translation. pnpm translate does not touch docs.json, so navigation is synced separately with translate:sync-docs-json when the English nav changes.
How does it skip pages that have not changed?
Each translated file stores a translationSourceHash in its frontmatter. If the English source hash is unchanged, the file is skipped.
Which languages does it translate into?
The source describes translations into Japanese (ja), Chinese (zh) and Korean (ko).
How do I install docs-i18n-translate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docs-i18n-translate free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is docs-i18n-translate safe to use?
It scores 74 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to docs-i18n-translate?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
