by xuyangyang · v0.0.2
profile file to file translation service
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
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 |
|---|---|
tools/txt_translator.yaml | Line-preserving text file translation |
tools/docx_translator.yaml | Paragraph/run-preserving Word translation |
tools/xlsx_translator.yaml | Cell-preserving Excel translation |
tools/ppt_translator.yaml | Shape/run-preserving PowerPoint translation |
All tools expose the same parameter set; only the output format changes.
slides.translated.ja.pptx.dify-plugin plugin package /path/to/file_translator.difypkg in Dify’s Plugin Management console.No extra environment variables or API keys are required beyond the LLM credentials already configured in Dify.
| Parameter | Type | Required | Notes |
|---|---|---|---|
file_url | string | Yes | Dify-uploaded file URL or accessible HTTP(S) link. |
file_name | string | Yes | Used to infer extension and generate the output name. |
model | object | Yes | Full LLM configuration object (e.g. from previous node or App settings). |
target_lang | string | No | Defaults to en. Accepts language names or codes understood by the LLM. |
chunk_tokens | int | No | Max tokens per request (default 1800, clamped to 200–6000). |
overlap_tokens | int | No | Optional overlap for context continuity (default 60). |
.txt, .docx, .xlsx, .pptx)..translated.<lang> appended before the extension.The plugin’s runtime depends on:
dify_plugin>=0.2.0,<0.3.0
openpyxl==3.1.5
python-docx==1.1.2
python-pptx==0.6.23
These are pulled automatically during packaging/execution.
.xlsx. Legacy .xls files should be converted first.To run the plugin locally for debugging:
pip install -r requirements.txt
python -m main
Ensure .env is configured with your Dify remote debugging credentials (see GUIDE.md for details).
Distributed under the MIT License. See LICENSE for full text.