Install
openclaw skills install @openlark/tech-translatorProfessional technical documentation translation expert, proficient in internet industry terminology. Translates user-provided files, preserves original formatting, and performs professional accuracy and format validation.
openclaw skills install @openlark/tech-translatorSuitable 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 Type | Output |
|---|---|
| Folder | {original_name}_{lang}/, preserving internal structure |
| Single file | {original_name}_{lang}.{ext} |
| Pasted text / URL | .translations/translated_output_{lang}/output.{ext} |
Language codes: zh en ja, etc.
| Format | Extensions | Handling Method |
|---|---|---|
| Markdown | .md .mdx .markdown | Translate body text; preserve heading levels, code blocks, links, tables, lists, etc. |
| JSON | .json | Translate values only; skip non-text fields like version/keywords/config/scripts/dependencies/license/main |
| YAML/TOML | .yaml .yml .toml | Translate string values only; preserve keys and structure. For front matter, translate name/description/title but keep field names. |
| HTML | .html .htm .xhtml | Translate 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 .plist | Translate element text content and comments; preserve tags, attributes, namespaces, CDATA. For SVG, translate <text> content but preserve font/Aria attributes. |
| RST | .rst | Translate body text; preserve heading adornments (=== ---), directives (e.g., .. code-block::), roles (e.g., :ref:), and reference links. |
| AsciiDoc | .adoc .asciidoc .ad | Translate body text; preserve heading markers, block delimiters (----), macros (e.g., include::), and attributes (e.g., {name}). |
| CSV/TSV | .csv .tsv | Detect header row, translate data cells; preserve delimiters and quotes. |
| Properties | .properties .env | Translate values after = only; preserve keys and comments (# !). |
| Strings | .strings .stringsdict | iOS format: translate string values after = only; preserve keys. |
| PO/POT | .po .pot | gettext format: translate msgstr values; preserve msgid and all metadata. |
| LaTeX | .tex .ltx | Translate body paragraphs; preserve commands (e.g., \section), environments (e.g., \begin{}), math mode, and references (\ref \cite). |
| Plain Text | Others / no extension | Translate 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:
═══════════════════════
Translation Complete
File: {full path}
Format Validation: ✅ | Terminology Consistency: ✅ | Professional Accuracy: ✅
{Any noted issues}
═══════════════════════