Xpersona
F

File Translate

CLAWHUB · Unverified

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: File Translate Owner: ray771 Summary: 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... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-24T04:00:36.787Z | user - Added explicit privacy and data handling disclosures to SKILL.md, describing file uploads, retention, and access control. - Updated pre

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17e19he6gfkpk30cp73wkft1s83g4jy:360-translate
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ray771-360-translate/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

30,728 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: file-translate
description: >
  Immersive file & image translation — preserving original layout, formatting,
  and visuals. Drop in a PDF, Word, PPT, Excel, image, ePub and get back
  a fully translated version that looks like it was authored natively.
  Supports 100+ languages for text, 14 for images, and all major document formats.
  Use when user asks to translate a file, document, image, spreadsheet, slide deck,
  or any text.
  Triggers: "翻译", "translate", "翻译这个文件", "translate this image",
  "把这个翻译成中文/英文", "document translation", "图片翻译", "文档翻译",
  "file translation", "translate PDF", "translate Word".
  Requires env TRANSLATE_360_API_KEY (360 AI Platform API key).
  Files and images are uploaded to api.360.cn for processing — do not use with
  confidential or sensitive documents unless you accept this data transfer.
metadata:
  openclaw:
    requires:
      env:
        - TRANSLATE_360_API_KEY
    primaryEnv: TRANSLATE_360_API_KEY
    homepage: https://ai.360.com/platform/keys
---

# 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](https://ai.360.com/platform/keys)  
   (新注册用户会获赠 **50 元体验金**,可直接用于翻译服务)
2. Set the environment variable in your shell config:
   ```bash
   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

```bash
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

_meta.json

{
  "ownerId": "kn7e2xkztvyjzq6tzw0zn4exwx838k6j",
  "slug": "360-translate",
  "version": "1.0.2",
  "publishedAt": 1774324836787
}

references/api-reference.md

# 360 AI Translation API Reference

## Authentication

All requests require:
```
Authorization: Bearer <API_KEY>
Content-Type: application/json
```

API key is read from env var `TRANSLATE_360_API_KEY`.

## 1. Text Translation

**POST** `https://api.360.cn/v1/translate`

### Request Body (JSON)

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| input | array[string] | Yes | Texts to translate (max 50 per request) |
| tl | string | Yes | Target language code |
| sl | string | No | Source language (auto-detect if omitted) |
| content_filter | bool | No | Content filtering (default true) |
| split_enable | bool | No | Auto-split long text (default false) |

### Response

```json
{ "output": ["translated text"], "code": 0, "id": "..." }
```

Error: `{ "error": { "code": "1001", "message": "..." } }`

## 2. Image Translation

**POST** `https://api.360.cn/v1/images/translate`

### Request Body (JSON)

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| image_format | string | Yes | `url` or `base64` |
| init_image | string | Yes | Image URL or base64 (without data URI prefix) |
| model | string | Yes | Always `360/image-translate` |
| target_lang | string | Yes | Target language code |

### Supported formats
JPG, PNG, WEBP, BMP, GIF (first frame only). Max 10MB.

### Supported languages
zh, en, ja, fr, ru, ko, pt, th, es, it, hi, pl, vi, id

### Response

```json
{
  "code": "0", "message": "success",
  "data": {
    "res": {
      "img_res": ["https://...translated-image.png"],
      "word_res": ["extracted translated text"]
    },
    "size": "597x600",
    "time_cost_ms": 1260
  }
}
```

Image URLs in `img_res` expire in 6 months — download promptly.

## 3. Document Translation (Async)

### Step 1: Upload

**POST** `https://api.360.cn/v1/documents/translate/upload?target_lang=<code>`

- Content-Type: `multipart/form-data`
- Body: `file` field with the document
- `target_lang` query param (optional; defaults to foreign→zh or zh→en)

Supported formats: pdf, doc, docx, xls, xlsx, ppt, pptx, csv, epub, mobi, rtf, html, xhtml, md, txt
Max size: 100MB. Output: PDF only.

Response:
```json
{ "errno": 0, "data": { "taskId": "..." } }
```

### Step 2: Poll Result

**GET** `https://api.360.cn/v1/documents/translate/result?task_id=<taskId>`

Response:
```json
{
  "errno": 0,
  "data": {
    "state": "success",  // "process" | "success" | "fail"
    "output": {
      "progress": 100,
      "data": {
        "s3url": "https://...translated.pdf",
        "pageCount": 10,
        "transPageCount": 10
      }
    }
  }
}
```

## 4. Common Language Codes

| Language | Code | | Language | Code |
|----------|------|-|----------|------|
| Chinese | zh | | English | en |
| Japanese | ja | | Korean | ko |
| French | fr | | German | de |
| Spanish | es | | Portuguese | pt |
| Russian | ru | | Italian | it |
| Thai | th | | Vietnamese | vi |
| Indonesian | id | | Arabic | ar |
| Hindi | hi | | Turkish | 

skill-card.md

## Description:

File Translate helps agents translate text, images, and common document formats with layout-preserving outputs through the 360 AI Translation API.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ray771](https://clawhub.ai/user/ray771)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to translate PDFs, Word files, slide decks, spreadsheets, images, and free-form text while preserving layout when supported. It is best suited for content that can be sent to a third-party translation service.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: User text, images, and whole documents are sent to 360's external translation service.

Mitigation: Avoid confidential, regulated, or classified content unless that transfer is acceptable, and test first with non-sensitive samples.

Risk: Credential and billing exposure can occur if a broad or long-lived API key is used.

Mitigation: Use a dedicated low-limit TRANSLATE_360_API_KEY and rotate or revoke it when no longer needed.

Risk: Returned result URLs may be accessible to anyone with the link during their validity window.

Mitigation: Download results promptly, avoid sharing result URLs, and prefer a patched version that validates downloaded result URLs before routine use.

## Reference(s):

- [360 AI Translation API Reference](artifact/references/api-reference.md)
- [360 AI Platform API Keys](https://ai.360.com/platform/keys)
- [File Translate on ClawHub](https://clawhub.ai/ray771/skills/360-translate)

## Skill Output:

**Output Type(s):** [text, files, shell commands, guidance]

**Output Format:** [Markdown guidance with shell commands, translated strings, result URLs, and saved PDF or image files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires TRANSLATE_360_API_KEY; sends requested text, images, or documents to 360's external translation service.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to File Translate and adjacent AI workflows.