manual-translator

Translates docx manuals into target languages while preserving document structure and tables.

1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/HalseyYang/Skills-HY --skill manual-translator-halseyyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manual-translator
Source: https://github.com/HalseyYang/Skills-HY/tree/main/translate-manual
Command: npx skills add https://github.com/HalseyYang/Skills-HY --skill manual-translator-halseyyang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve? Translating product manuals and documentation into multiple languages manually is slow and error-prone, especially when you must preserve the original layout, tables, and images. This Skill automates docx manual translation via the DeepLX API while keeping the original document structure intact. ## Core Features & Use Cases - Batch Paragraph Translation: Translates docx paragraphs in batches of 50 with intermediate saves to prevent data loss from API timeouts or rate limits. - Table Translation: Iterates through every table cell, detects Chinese content, translates it, and saves after each table for fault tolerance. - Format Preservation: Replaces only text content while retaining paragraph styles, table structures, and embedded images. - Use Case: A medical device company needs its Chinese user manual localized into English, Japanese, and Korean for overseas markets. Upload the docx, specify the target language, and receive a translated file with the original formatting intact. ## Quick Start Translate the attached manual.docx into English using this Skill and save the result as a new docx file.

Frequently Asked Questions about manual-translator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate a docx document into another language with Python?

Use python-docx to read paragraphs and table cells, send each text segment to the DeepLX translate endpoint, and write the translated text back into the document. Batch processing with intermediate saves prevents losing progress on large files.

How to translate Word document tables without losing formatting?

Iterate through doc.tables, then each row and cell, translating only the cell text while leaving the table structure untouched. Saving the document after each table protects against mid-process failures.

What API key does the DeepLX translation script need?

The script accepts an API key as a command-line argument or reads it from the DEEPLX_API_KEY, DEEPL_API_KEY, or TRANSLATOR_API_KEY environment variables, checked in that order. Command-line values take priority over environment variables.

Which target languages does DeepLX translation support?

The script maps common language names to codes including EN, JA, KO, ZH, FR, DE, ES, IT, PT, and RU. Both English and Chinese language names are normalized to the correct code before sending the request.

Why does docx translation fail partway through large documents?

Failures usually come from API rate limits or network timeouts on long documents. The script mitigates this by translating in batches of 50 items and saving intermediate results so completed work is never lost.

Can this approach replace screenshots in localized manuals?

Image extraction from docx is implemented, but automatic screenshot replacement is only partially implemented and listed as a planned feature. Currently you must recapture and swap interface screenshots manually.