详细分析 ▾
运行时依赖
版本
- Initial release of Excel Translator Skill. - Translates Excel (.xlsx) files from English to Chinese, preserving all formatting, images, and charts. - Writes the Chinese translation below the original English text in the same cell, separated by a newline. - Supports custom output file paths and automatically appends a "_translated" suffix if not specified. - Uses OpenAI API credentials configured via environment variables in the Manus sandbox. - Provides a core Python script (`translate.py`) for streamlined translation workflow.
安装命令 点击复制
技能文档
Overview
This skill translates the text content of an Excel file (.xlsx) from English to Chinese using openpyxl. The Chinese translation is placed directly below the original English text in the same cell, separated by a newline — no new rows or columns are inserted. Original formatting (merged cells, fonts, colors, images) is preserved.
Workflow
- Identify the input
.xlsxfile path from the user. - Run
scripts/translate.pyfrom the shell. - Deliver the output file to the user as an attachment.
Running the Script
python3.11 /home/ubuntu/skills/excel-translator/scripts/translate.py "/path/to/input.xlsx"
The output file is saved automatically with a _translated suffix in the same directory.
Custom output path:
python3.11 /home/ubuntu/skills/excel-translator/scripts/translate.py "/path/to/input.xlsx" -o "/path/to/output.xlsx"
Environment Variables
The script reads API credentials from environment variables. These are pre-configured in the Manus sandbox:
OPENAI_API_KEY— API key for the translation model.OPENAI_BASE_URL— Base URL for the API endpoint (defaults tohttps://api.openai.com/v1).
Bundled Resources
scripts/translate.py— Core translation script. Scans all sheets, translates English text cells concurrently via OpenAI API, writes"English\nChinese"back into the same cell withwrap_text=True, and saves the result.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制