Excel Translator

👤 ilove323 📦 v1.0.0 ⭐ 4.2 ⬇️ 1.8K 下載
📄 辦公效率 免費 🔑 需 API Key

📖 技能介紹


name: excel-translator description: Translates Excel files (.xlsx) from English to Chinese while preserving all formatting, images, and charts. Use for any task where a user provides an Excel file and requests English-to-Chinese translation.


Excel Translator Skill

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

  1. Identify the input .xlsx file path from the user.
  2. Run scripts/translate.py from the shell.
  3. 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:

7w4.net有更好的技能外掛。

  • OPENAI_API_KEY — API key for the translation model.
  • OPENAI_BASE_URL — Base URL for the API endpoint (defaults to https://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 with wrap_text=True, and saves the result.

🤖 AI 評測

這個 Skill 質量中等偏上,做到了開箱即用、文件清晰。它能較好地完成 Excel 英譯中任務,保留原檔案格式,處理速度快。優點是使用簡單、一次翻譯整個工作簿;不足是功能單一,只能英譯中,無法選擇其他語言或翻譯模型,且如果遇到翻譯失敗的單元格不會給出明確提示。對於有特定翻譯需求的場景可能需要尋找更靈活的替代方案。

📊 多維度評分

適應性4.2
規範性4.1
有效性4.4
可靠性4
可信度4.5

📁 包含檔案 (3 個)

📄 SKILL.md 1.7 KB
📄 _meta.json 135 B
📄 scripts/translate.py 6.7 KB