Suitable for Chinese-English translation scenarios of technical documentation, API docs, READMEs, technical blogs, specification documents, etc.
Provide translation content (file/folder/pasted text/URL). The skill intelligently executes the translation. Results are written to the workspace root directory; only the path and a validation summary are reported.
Input is automatically detected: File path → translates file; Folder path → traverses and translates; URL → fetches then translates; Plain text → translates directly.
Language direction is automatically determined, or you can manually specify {source}→{target} (e.g., zh→en).
All output is written to the workspace root directory:
Input TypeOutputFolder{original_name}_{lang}/, preserving internal structureSingle file{original_name}_{lang}.{ext}Pasted text / URL.translations/translated_output_{lang}/output.{ext}
Language codes: zh en ja, etc.
FormatExtensionsHandling MethodMarkdown.md .mdx .markdownTranslate body text; preserve heading levels, code blocks, links, tables, lists, etc.JSON.jsonTranslate values only; skip non-text fields like version/ keywords/ config/ scripts/ dependencies/ license/ mainYAML/TOML.yaml .yml .tomlTranslate string values only; preserve keys and structure. For front matter, translate name/ description/ title but keep field names.HTML.html .htm .xhtmlTranslate text inside <body>/ <p>/ <h1~6>/ <li>/ <td>/ <th>/ <a>/ <title>/ <meta description>; preserve tag attributes. Do not touch <code>, <pre>, <script>, <style>.XML/SVG.xml .svg .plistTranslate element text content and comments; preserve tags, attributes, namespaces, CDATA. For SVG, translate <text> content but preserve font/Aria attributes.RST.rstTranslate body text; preserve heading adornments ( === ---), directives (e.g., .. code-block::), roles (e.g., :ref:), and reference links.AsciiDoc.adoc .asciidoc .adTranslate body text; preserve heading markers, block delimiters ( ----), macros (e.g., include::), and attributes (e.g., {name}).CSV/TSV.csv .tsvDetect header row, translate data cells; preserve delimiters and quotes.Properties.properties .envTranslate values after = only; preserve keys and comments ( # !).Strings.strings .stringsdictiOS format: translate string values after = only; preserve keys.PO/POT.po .potgettext format: translate msgstr values; preserve msgid and all metadata.LaTeX.tex .ltxTranslate body paragraphs; preserve commands (e.g., \section), environments (e.g., \begin{}), math mode, and references ( \ref \cite).Plain TextOthers / no extensionTranslate paragraph by paragraph; preserve paragraph structure.
When translating a folder, a temporary glossary is created to ensure consistent translation of the same term across multiple files:
{var} {{var}} %s <param> are protected and left untouched.// /** */) can be translated, and marked as "Comments translated".`code` is not translated.Total N files, M require translation.Automatically checks and reports the following:
If issues are found, they are noted in the validation summary without retranslating (to be confirmed by a human).
General principles:
text
═══════════════════════
Translation Complete
File: {full path}
Format Validation: ✅ | Terminology Consistency: ✅ | Professional Accuracy: ✅
{Any noted issues}
═══════════════════════