translate-docs

A translation workflow for VMark documentation and app text in nine supported languages. It translates the content, checks the result, and applies language-specific corrections and cultural adjustments.

In plain words
What is it for?
It is for translating guide pages, synchronising application language files, auditing translations, and filling in newly added language keys.
Why use it?
It helps keep translated documentation and interface text consistent when English content or translation keys change. It also finds missing translations across the supported languages.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/xiaolai/vmark/translate-docs
Any agent
npx skills add xiaolai/vmark --skill translate-docs
Clone the repo
git clone --depth 1 https://github.com/xiaolai/vmark

Made for: Claude Code, Codex.

Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00067 $0.03876
Opus 5 $0.00034 $0.01938
Sonnet 5 $0.00013 $0.00775
Haiku 4.5 $0.00007 $0.00388

Measured 3d ago against content hash 7683af50abbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

translate-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/translate-docs/SKILL.md · 345 lines

How it starts

The opening of the file, as written. The whole thing — 345 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VMark Translation

Two modes share the same 9 locales, the same subagent pipeline, and the same cultural rules:

  • Docs mode (default) — translate website/guide/**/*.md markdown files.
  • App string mode (--app) — sync new keys across src/locales/{locale}/*.json (i18next) and src-tauri/locales/{locale}.yml (rust-i18n).

Docs mode is the original flow; App string mode was added to handle the smaller, structured strings that the app ships every day. They share Stages 2–4 (translate → audit → cultural polish) but differ in what they read, what they write, and how they protect existing content.

When to Use

Docs mode

  • Adding a new page to website/guide/
  • Updating an existing page that needs translation sync
  • User asks to "translate", "localize", or "add language support" for website content

App string mode (--app)

  • New keys appear in src/locales/en/*.json or src-tauri/locales/en.yml without matching entries in other locales
  • pnpm lint:i18n reports missing keys
  • User asks to "sync locale files", "translate new i18n keys", or "propagate locale keys"

Target Locales

Code Language CJK?
zh-CN Simplified Chinese Yes
zh-TW Traditional Chinese Yes
ja Japanese Yes
ko Korean Yes
de German No
fr French No
es Spanish No
it Italian No
pt-BR Brazilian Portuguese No

Workflow

Step 1: Prepare Source

  1. Read the English source file from website/guide/...
  2. Identify the file path pattern (e.g., guide/users-as-developers/foo.md)
  3. Check that all target locale directories exist: website/{locale}/guide/...

Step 2: Translate (parallel subagents)

Dispatch up to 9 translation subagents in parallel — one per locale. Each subagent receives:

  • The full English source content
  • The target locale code and language name
  • Translation rules (see below)

Translation Rules for Every Locale:

  1. Translate all prose — headings, paragraphs, list items, block quotes, alert blocks
  2. Preserve markdown structure exactly — headings levels, link URLs, code blocks, tables, images, front matter
  3. Keep technical terms in English — product names (VMark, Tauri, ProseMirror, Tiptap, CodeMirror, Mermaid, Vitest), programming terms in code context (LOC, TDD, CI/CD, API, MCP), file paths, command names
  4. Translate table headers and cell text — but keep code/numbers as-is
  5. Translate VitePress containers::: info, ::: tip, ::: warning labels stay as-is (VitePress renders them), but translate the content inside
  6. Adapt culturally — don't just word-swap. Use natural phrasing. Examples:
    • "TL;DR" → "太长不看版" (zh-CN), "要約" (ja), "요약" (ko)
    • "out of the box" → use the local idiom, not a literal translation
    • Currency/number formatting: use locale conventions in prose (but keep raw numbers in tables/code)
  7. Em-dash spacing — follow VMark convention: word — word with spaces in English/European locales. CJK locales use —— (double em-dash) without spaces.

Read the full file on GitHub · 345 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 345 lines · 67 tokens per session scan A 7683af50abbe

Subscribe to this mod's changes

translate-docs is a skill published in the GitHub repository xiaolai/vmark (544 stars, last pushed 3d ago), licensed ISC. It adds 67 tokens to every session and 3,876 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dsh-translate-docs

Manually run the extended DeepSeek Harness bilingual-document workflow, including generated briefings, delegated prose translation, whole-document translation, and scoped pairing verification.

deepseek-ai/deepseek-harness · 37 tokens

i18n-localization

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

vudovn/ag-kit · 27 tokens

translate-skill

将 mattpocock/skills 的内容翻译、刷新或复核到简体中文本地化仓库 vinvcn/mattpocock-skills-zh-CN 时使用这个项目级 skill。适用于 skill files、README content、CLAUDE.md、CONTEXT.md、docs,以及其他需要保留行为关键 identifiers 的上游用户可见内容。.

vinvcn/mattpocock-skills-zh-CN · 84 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready.

childrentime/reactuse · 32 tokens