← 返回 Skills 市场
ray771

File Translate

作者 ray771 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
304
总下载
1
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 360-translate
功能描述
Immersive file & image translation — preserving original layout, formatting, and visuals. Drop in a PDF, Word, PPT, Excel, image, ePub and get back a fully t...
使用说明 (SKILL.md)

File Translate — Layout-Preserving Immersive Translation

Translate documents, images, and text while keeping the original look and feel.

Unlike plain-text translation, File Translate understands your document's layout — tables, headers, charts, embedded images, and formatting are all preserved. Images get in-place text replacement that blends with the scene. The result reads like it was written in the target language from the start.

✨ Highlights

  • 📄 Document translation — PDF, Word, PPT, Excel, ePub, HTML, and more → translated PDF with original layout intact
  • 🖼️ Image translation — scene-aware text replacement, not ugly overlays. Fonts, colors, and backgrounds blend naturally
  • 📝 Text translation — fast batch translation for strings and paragraphs, 100+ languages
  • 🔀 Smart routing — Word files automatically use the deepdoc v2 engine for best fidelity; other formats route to v1. Zero config needed
  • 🌍 100+ languages — auto-detects source language

Prerequisites

Requires a 360 AI Platform API Key.

  1. Create a key at 360 AI Platform
    (新注册用户会获赠 50 元体验金,可直接用于翻译服务)
  2. Set the environment variable in your shell config:
    export TRANSLATE_360_API_KEY="your-api-key-here"
    
  3. source ~/.zshrc to reload

Security tip: Use a dedicated API key with minimal billing scope for this skill. Rotate or revoke it when you stop using the skill.

No pip install — pure Python 3 stdlib.


Document Translation

python3 scripts/translate.py doc --tl <target_lang> --file <doc_path> [--out <output_dir>] [--timeout 3600]
  • Supported: pdf, doc, docx, xls, xlsx, ppt, pptx, csv, epub, rtf, html, xhtml, txt
  • Not supported: md, mobi
  • Word files (.doc/.docx) → deepdoc v2 engine (best quality)
  • All other formats → v1 engine
  • Routing is automatic and transparent
  • Max 100MB per file. Output is always PDF
  • Default timeout: 3600s (1 hour — large docs can take a while)

Image Translation

python3 scripts/translate.py image --tl <target_lang> --file <image_path> [--out <output_path>]
python3 scripts/translate.py image --tl <target_lang> --url <image_url> [--out <output_path>]
  • Scene-aware: replaces text in-place matching original font style, color, and background
  • Supported: JPG, PNG, WEBP, BMP, GIF (first frame). Max 10MB
  • Target languages: zh, en, ja, fr, ru, ko, pt, th, es, it, hi, pl, vi, id
  • Without --out, prints translated image URL (valid 6 months)

Text Translation

python3 scripts/translate.py text --tl <target_lang> [--sl <source_lang>] "text1" "text2" ...
  • Max 50 texts per call, source auto-detected if omitted
  • Common codes: zh (Chinese), en (English), ja (Japanese), ko (Korean), fr, de, es, ru

Quick Reference

What you have Command What you get
A Word doc doc --tl en --file report.docx Translated PDF, layout preserved
A PDF manual doc --tl zh --file manual.pdf Translated PDF
A slide deck doc --tl ja --file slides.pptx Translated PDF
A photo with text image --tl en --file sign.jpg New image, text replaced in-scene
A paragraph text --tl zh "Hello world" Translated string

Privacy & Data Handling

This skill uploads user-provided content to the 360 AI Translation API for processing. Read this section carefully before use.

What is uploaded

  • Text translation: Plain text strings are sent to api.360.cn via HTTPS.
  • Image translation: Images are sent as base64-encoded data or via URL to api.360.cn via HTTPS.
  • Document translation: Entire document files (PDF, Word, PPT, Excel, etc.) are uploaded to api.360.cn (v1 engine) or api.360.cn/deepdoc (v2 engine for Word files) via HTTPS multipart upload.

Data retention & access control

  • Translated image URLs: Returned by 360's CDN and typically expire after 3 months. These URLs are not authenticated — anyone with the link can access the image during the validity period. Download results promptly and avoid sharing URLs containing sensitive content.
  • Uploaded documents: Document processing is asynchronous. The translated PDF is available via a temporary download URL returned by the API. Refer to 360 AI Platform terms for the provider's data retention, deletion, and access control policies.
  • No local persistence: This skill does not persist uploaded files or translated results on disk beyond the current execution. Output files are only saved when you explicitly pass --out.

Credentials

  • The only credential required is TRANSLATE_360_API_KEY, used solely to authenticate with the 360 translation endpoints.
  • The skill does not collect, log, or transmit API keys or any data beyond what is required for the translation request.

Recommendations

  • Do not use this skill for highly sensitive, confidential, or classified documents unless you accept that content will be transmitted to and processed by a third-party service (360 AI, operated by 360 Group).
  • Use a dedicated API key with minimal privileges. Rotate or revoke it when you stop using the skill.
  • Test with non-sensitive sample files first before processing important documents.
  • Review the 360 AI Platform privacy policy and terms of service for full details on data handling, retention, and sharing.

API Details

Full request/response schemas, error codes, and language list: references/api-reference.md

Pricing

  • Text: ¥30 / 1M characters
  • Image: ¥0.04 / image
  • Document: ¥0.2 / page
安全使用建议
This skill appears to do exactly what it says: it uploads files/images/text to 360's translation API and returns translated outputs. Before installing, consider: (1) You will be sending document/image contents to a third-party service (api.360.cn) — do not use it for highly sensitive or regulated data unless you accept that transfer and provider policies. (2) Confirm the provider and API key page (ai.360.com) are legitimate for your organization; use a dedicated API key with limited billing scope and rotate/revoke it as needed. (3) The SKILL.md and reference docs contain small inconsistencies (e.g., reported image-URL expiry is 3 months in SKILL.md vs. 6 months in the API reference; supported formats lists differ slightly); verify supported formats and retention/expiry in the provider's official docs before bulk use. (4) The script uses HTTPS to the provider but will transmit entire files — treat returned CDN URLs as public while valid and download results promptly. If you want stronger guarantees, request provider data-retention and residency commitments before sending sensitive material.
功能分析
Type: OpenClaw Skill Name: 360-translate Version: 1.0.2 The skill is a legitimate implementation for document, image, and text translation using the 360 AI Platform API (api.360.cn). The Python script (scripts/translate.py) uses only standard libraries to handle file uploads and API requests, and the SKILL.md documentation clearly discloses the data transfer to the third-party service while providing appropriate security warnings regarding sensitive documents.
能力评估
Purpose & Capability
Name/description (layout-preserving file & image translation) match the included CLI script and API references. The single required env var TRANSLATE_360_API_KEY is exactly what a cloud translation client needs. The API endpoints used (api.360.cn and api.360.cn/deepdoc) are consistent with the described provider and homepage.
Instruction Scope
SKILL.md and scripts/translate.py instruct the agent to upload only the user-supplied text, images, or document files to the 360 endpoints and to read the TRANSLATE_360_API_KEY env var. The code only reads files provided as arguments and the API key; it does not attempt to read unrelated local files, shell history, or other environment variables. The documentation explicitly warns about uploading sensitive documents.
Install Mechanism
This is an instruction-only skill with a small Python stdlib-only script. There is no install spec, no downloads from third-party URLs, and no package manager dependencies — minimal install risk.
Credentials
Only one credential is requested (TRANSLATE_360_API_KEY) and it is used solely for authenticating to the 360 API. No unrelated secrets, system config paths, or additional credentials are requested.
Persistence & Privilege
The skill is not always-enabled and uses normal (default) autonomous-invocation settings. The SKILL.md states the skill does not persist uploads or results locally unless the user passes an --out path. The script prints or downloads URLs returned by the API but does not modify other skills or system-wide configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 360-translate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /360-translate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added explicit privacy and data handling disclosures to SKILL.md, describing file uploads, retention, and access control. - Updated prerequisites section with a security tip and API key handling guidance. - The SKILL.md description now warns users about uploading files and images to api.360.cn and advises against use with confidential documents unless data transfer is acceptable. - Added Openclaw metadata specifying required environment variables. - No core functionality changes.
v1.0.1
New branding and feature-focused update. - Renamed from "360-translate" to "file-translate" with a new description centered on layout-preserving, immersive translation. - Expanded triggers to include file, document, spreadsheet, slide deck, and image translation requests. - Emphasized automatic smart routing: Word files use the deepdoc v2 engine; others use v1. - Improved documentation clarity, highlighting the preservation of visuals, layout, and formatting in output. - Added quick command reference and updated supported formats and language info. - No code changes in this release.
v1.0.0
- Initial release of 360-translate skill. - Translate text, images (14 languages), and documents (all major formats) using the 360 AI Translation API. - Simple Python script interface; no dependencies required. - Requires a 360 AI Platform API Key (environment variable setup guide included). - Supports triggers for text, file, image, and document translation requests. - Includes decision guide and clear instructions for usage and API pricing.
元数据
Slug 360-translate
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

File Translate 是什么?

Immersive file & image translation — preserving original layout, formatting, and visuals. Drop in a PDF, Word, PPT, Excel, image, ePub and get back a fully t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 304 次。

如何安装 File Translate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 360-translate」即可一键安装,无需额外配置。

File Translate 是免费的吗?

是的,File Translate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

File Translate 支持哪些平台?

File Translate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 File Translate?

由 ray771(@ray771)开发并维护,当前版本 v1.0.2。

💬 留言讨论