profile file to file translation service
Translate common Office documents inside Dify while keeping layout, fonts, and basic styling intact.
| Field | Value |
|---|---|
| Author | xuyangyang |
| Version | 0.0.1 |
| Plugin Type | Tool Provider |
| Supported UI | Apps, Workflows, Agents |
The plugin wraps several file translators (TXT / DOCX / XLSX / PPTX). Each tool downloads the source file, streams text to an LLM in token-aware batches, then writes the translated content back to a copy of the original document.
| Tool YAML | Purpose |
|---|---|
| Line-preserving text file translation | |
| Paragraph/run-preserving Word translation | |
| Cell-preserving Excel translation | |
| Shape/run-preserving PowerPoint translation |
All tools expose the same parameter set; only the output format changes.
No extra environment variables or API keys are required beyond the LLM credentials already configured in Dify.
| Parameter | Type | Required | Notes |
|---|---|---|---|
| string | Yes | Dify-uploaded file URL or accessible HTTP(S) link. | |
| string | Yes | Used to infer extension and generate the output name. | |
| object | Yes | Full LLM configuration object (e.g. from previous node or App settings). | |
| string | No | Defaults to . Accepts language names or codes understood by the LLM. | |
| int | No | Max tokens per request (default 1800, clamped to 200–6000). | |
| int | No | Optional overlap for context continuity (default 60). |
The plugin’s runtime depends on:
These are pulled automatically during packaging/execution.
To run the plugin locally for debugging:
Ensure is configured with your Dify remote debugging credentials (see for details).
Distributed under the MIT License. See for full text.