suppr-translate

超能文献(Suppr)文档翻译 API。当用户需要翻译文档(Word、Excel、PowerPoint、PDF、TXT、HTML)、查询翻译状态或管理翻译任务时激活。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "suppr-translate" with this command: npx skills add zjg678/suppr-document-translation-skills

超能文献文档翻译 API

超能文献(Suppr)提供 AI 驱动的多语言文档翻译服务,支持 Word、Excel、PowerPoint、PDF、TXT、HTML 等格式。

何时激活

  • 用户需要翻译文档(Word、Excel、PowerPoint、PDF、TXT、HTML)
  • 用户需要查询翻译任务状态或下载翻译结果
  • 用户需要管理翻译任务(列表、停止)

API 端点

1. 创建翻译任务(文件上传)

POST https://api.suppr.wilddata.cn/v1/translations
Content-Type: multipart/form-data
Authorization: Bearer <your_api_key>

参数:

参数类型必填说明
fileFile与 file_url 二选一要翻译的文档文件
file_urlString与 file 二选一文档的 URL 地址
file_nameString使用 file_url 时指定文件名
from_langString源语言代码,默认 auto(自动检测)
to_langString目标语言代码
optimize_math_formulaBoolean是否优化数学公式(仅 PDF 有效),默认 false

2. 创建翻译任务(JSON)

仅支持 file_url 模式。

POST https://api.suppr.wilddata.cn/v1/translations
Content-Type: application/json
Authorization: Bearer <your_api_key>

{
  "file_url": "https://example.com/document.docx",
  "file_name": "document.docx",
  "from_lang": "en",
  "to_lang": "zh-cn",
  "optimize_math_formula": false
}

3. 获取翻译任务详情

GET https://api.suppr.wilddata.cn/v1/translations/{task_id}
Authorization: Bearer <your_api_key>

4. 获取翻译任务列表

GET https://api.suppr.wilddata.cn/v1/translations?offset=0&limit=20
Authorization: Bearer <your_api_key>

查询参数:

参数类型默认值说明
offsetInteger0分页偏移量
limitInteger20每页数量(1-100)
task_idString-可选,若提供则返回单个任务

5. 停止翻译任务

POST https://api.suppr.wilddata.cn/v1/translations/{task_id}/stop?reason=用户取消
Authorization: Bearer <your_api_key>

支持的文件格式

格式扩展名
Word.docx
Excel.xlsx
PowerPoint.pptx
PDF.pdf
纯文本.txt
网页.html

最大文件大小:2GB

语言代码

代码语言
auto任意语言(仅 from_lang,自动检测)
en英语
zh-cn简体中文
zh-tw繁体中文
ja日语
ko韩语
es西班牙语
fr法语
pt葡萄牙语
ru俄语
de德语
pl波兰语
it意大利语

响应格式

所有响应使用统一格式:

{
  "code": 0,
  "data": { ... },
  "msg": ""
}

code 为 0 表示成功,非 0 表示错误。

任务状态

状态说明
INIT任务已创建,等待处理
PROGRESS翻译进行中
DONE翻译完成
STOPPING正在停止

典型工作流

  1. 创建翻译任务:通过文件上传或 URL 提交文档
  2. 轮询任务状态:定期调用获取任务详情接口,检查 status 字段
  3. 获取翻译结果:当状态为 DONE 时,从响应中的 target_file_url 下载译文
# 步骤 1:创建任务
curl -X POST https://api.suppr.wilddata.cn/v1/translations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_url": "https://example.com/paper.pdf", "from_lang": "en", "to_lang": "zh-cn"}'

# 步骤 2:查询状态(使用返回的 task_id)
curl https://api.suppr.wilddata.cn/v1/translations/TASK_ID \
  -H "Authorization: Bearer YOUR_API_KEY"

# 步骤 3:当 status 为 DONE 时,从 target_file_url 下载译文

响应示例

创建任务成功

{
  "code": 0,
  "data": {
    "task_id": "02a6c6d1-3f70-4a5a-80bc-971d53a37bb1",
    "status": "INIT",
    "consumed_point": 453,
    "source_lang": "auto",
    "target_lang": "ko",
    "optimize_math_formula": false
  },
  "msg": ""
}

任务详情

{
  "code": 0,
  "data": {
    "task_id": "taskid-1234",
    "status": "DONE",
    "progress": 1,
    "consumed_point": 453,
    "source_file_name": "example.docx",
    "source_file_url": "https://example.com/source.docx",
    "target_file_url": "https://example.com/target.docx",
    "source_lang": "auto",
    "target_lang": "ko",
    "error_msg": null,
    "optimize_math_formula": false
  },
  "msg": ""
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

jargon-translator

黑话翻译器。互联网黑话双向转换 — 大白话包装成职场语言,或者把黑话说成人话。Yi 日常自用,觉得好用就分享出来了。

Registry SourceRecently Updated
1230Profile unavailable
General

Listing I18n

在 OpenClaw 中把中文产品 Excel 或 CSV 本地化为 Amazon 和 Shopify 的多语言 Listing。适用于翻译产品、跨境电商 Listing 本地化、Amazon listing、Shopify listing、localize products 等场景。

Registry SourceRecently Updated
1540Profile unavailable
General

多语种音频翻译助手

多语种语音翻译技能。支持URL或本地文件输入,自动识别源语言,翻译为目标语言,并生成目标语言的语音文件。支持中文、英文、日文、法文、西班牙文等多种语言互译。

Registry SourceRecently Updated
1930Profile unavailable
General

Translator Pro

Test translation quality with built-in dictionaries and comparison tools. Use when evaluating translations. Supports bilingual documentation and optimized AI...

Registry SourceRecently Updated
1.7K0Profile unavailable