translate-docs
Identifies missing translations and manages the localization workflow for documentation sets.
Install
mkdir -p .claude/skills/translate-docs-alloystorm && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10431" && unzip -o skill.zip -d .claude/skills/translate-docs-alloystorm && rm skill.zipInstalls to .claude/skills/translate-docs-alloystorm
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Translates DanceXR documentation pages into the localized website versions (Japanese, Korean, Traditional Chinese, Simplified Chinese). Use this when asked to translate pages, find missing translations, or update outdated translations.Key capabilities
- →Identify pages needing translation
- →Identify outdated translations
- →Translate body content
- →Verify language links
- →Assemble translated files
How it works
It compares git histories to find missing or outdated translations, then applies structured transformations to front matter and content.
Inputs & outputs
When to use translate-docs
- →Find pages needing translation
- →Identify outdated translations
- →Update documentation for new languages
- →Check translation parity with source
About this skill
Overview
Source English pages live under dancexr/. Localized counterparts mirror that structure under language prefixes:
| Language | Prefix | Locale | Nav suffix |
|---|---|---|---|
| Japanese | jp/dancexr/ | ja-JP | -jp |
| Simplified Chinese | zh/dancexr/ | zh-CN | -zh |
| Traditional Chinese | tw/dancexr/ | zh-TW | -tw |
| Korean | kr/dancexr/ | ko-KR | -kr |
Use the provided tool to find the pages that needs to be translated or updated, then create localized pages or update existing translation.
Do not use the translation scripts under /script/ for the actual translation since they are out-dated and worse in quality.
Step 1: Identify pages to translate
Run python script/find_untranslated_pages.py --json in the terminal to get a list of pages that need translation.
The tool automatically checks if the localized files are missing or if the English source file has a more recent git commit history than the localized file.
It will output a JSON array of objects specifying the file path and a list of languages it needs to be translated into.
Only proceed to the following steps for the files and languages identified by this script.
Step 2: Read the source file
Read the full content of the source English .md file. Identify and separate these three regions:
- Front matter: the YAML block between the opening and closing
---delimiters. - Language links block: the single line immediately after the front matter that contains the language switcher links (e.g.,
[Eng](/dancexr/...) | [繁中](/tw/dancexr/...) | ...). - Body content: everything after the language links block.
Step 3: Translate the body content
- Translate the body content into the target language.
- Never translate the language links block — keep it exactly as it appears in the source file.
- Preserve all Markdown formatting: headings, bullet lists, numbered lists, tables, bold/italic, and code spans.
- Preserve all Jekyll Liquid tags exactly (e.g.,
{% include video list="..." %}). - Preserve all Markdown links: translate only the visible link text if it is a natural-language phrase; never alter URLs.
- Keep the same number of headings and bullet/numbered list items as the source. If a translation validation check (section count, bullet count) fails, retry up to 3 times.
Step 4: Build the front matter for the translated file
Start from the source front matter and apply these transformations only — do not translate any other fields:
title: translate the value into the target language.locale: set to the locale code for the target language (see table above).permalink: replace/dancexr/with/<lang>/dancexr/(e.g.,/jp/dancexr/).sidebar.nav: append the language suffix to the nav value (e.g.,"docs"→"docs-jp").
Do not alter any other front matter keys or values.
Step 5: Verify language links
The language links block must follow this exact format and appear immediately after the closing --- of the front matter, separated by a blank line:
- The links in this block are identical in every language version of the page.
- If the source page is missing any language link (e.g., a locale page does not yet exist), add the link anyway — it will resolve once that page is created.
- Verify that each URL path matches the actual file path relative to the language root.
Step 6: Assemble and save the translated file
Combine the translated content in this order:
- Translated front matter (between
---delimiters) - Blank line
- Language links block (unchanged)
- Blank line
- Translated body content
Create any missing directories, then write the file to the destination path. Use UTF-8 encoding.
Constraints
- Never modify the source English files.
- Never translate front matter fields other than
title. - Never alter the language links block.
- Never alter Jekyll Liquid tags.
- When translating an outdated page (not missing), prefer translating only the sections that changed rather than rewriting the entire file, to minimize unintended drift from prior translations.
When not to use it
- →Modifying source English files
Limitations
- →Requires manual verification of translation quality
- →Restricted to specific language prefixes
How it compares
This automates the translation workflow and ensures structural parity compared to manual translation.
Compared to similar skills
translate-docs side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| translate-docs (this skill) | 0 | 3mo | No flags | Beginner |
| book-translation | 9 | 6mo | Review | Beginner |
| g2-translation-guidelines | 1 | 7mo | No flags | Beginner |
| material-component-doc | 0 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
book-translation
f
Translate "The Interactive Book of Prompting" chapters and UI strings to a new language
g2-translation-guidelines
antvis
Guidelines for translating G2 documentation, including terminology consistency, hyperlink adjustments, and file naming conventions for multilingual documentation. Use when need to translate documents.
material-component-doc
bytedance
用于 FlowGram 物料库组件文档撰写的专用技能,提供组件文档生成、Story 创建、翻译等功能的指导和自动化支持
new-recipe
SamChaps
Create a new bilingual recipe for Mon Manger. Use when: adding a recipe, converting recipe text to markdown, importing a recipe, creating recipe files. Handles front matter, bilingual content, tags, and category assignment.
youtube-clipper
op7418
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
pdf-translator
ForceInjection
Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document.