dshbase

插件目录 / Developer / dsh-translate-pro

dsh-translate-pro

未验证 ShiXiangYu2

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

2Stars
0Forks
0未关闭 issue
语言
2026-08-15最近推送
跨平台平台

功能简介

Professional translation plugin for DeepSeek Harness: 18 languages, 4 styles, glossary control, whole-file translation with format preservation. Powered by DeepSeek via SiliconFlow.

我们的评价
未验证 — 尚未实测

Professional translation plugin for DeepSeek Harness: 18 languages, 4 styles, glossary control, whole-file translation with format preservation. Powered by DeepSeek via SiliconFlow. 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

🌐 DSH Translate Pro

Professional translation for DeepSeek Harness — 18 target languages, 4 writing styles, terminology control, and whole-file translation with format preservation.

dsh-plugin DeepSeek Harness License: MIT

✨ Why this plugin

LLMs can "sort of" translate. DSH Translate Pro gives you professional-grade translation with controls you can't get from a casual chat prompt:

Feature What it does
🌍 18 target languages Chinese, English, Japanese, Korean, French, German, Spanish, Russian, Portuguese, Italian, Arabic, Thai, Vietnamese, Indonesian, Turkish, Hindi, Polish, Dutch
🎭 4 writing styles formal / casual / technical / literal — from legal documents to daily chat
📖 Glossary control Pin terminology: API=应用程序接口, LLM=大语言模型 — consistent terms across every translation
📄 Whole-file translation Translate READMEs, docs, subtitles, code comments while preserving Markdown, code blocks, URLs, and paths
✍️ In-place write-back One call translates your file and writes the result back — instant localized docs
🧠 DeepSeek engine Powered by DeepSeek V4-Flash (fast/cheap) or V3.2 (highest quality) via SiliconFlow
🎨 Conversation cards Side-by-side 原文/译文 cards rendered right in the chat stream

📸 Demo

Screenshots coming soon — the plugin renders bilingual comparison cards directly in your DSH conversation.

你: 把这段翻译成日语,正式风格:
    "Please find attached the revised contract for your review."

DSH: 🌐 translate → 日语 · formal
    原文: Please find attached the revised contract for your review.
    译文: 修正後の契約書をレビューのため添付しましたので、ご確認ください。

🚀 Install

Prerequisite: one free API key

Register at SiliconFlow (free credits included) and set the key:

export SILICONFLOW_API_KEY=sk-xxxxxxxx

Install the plugin

# From GitHub (no build step needed — ships plain ESM)
dsh plugin --profile demo add github:ShiXiangYu2/dsh-translate-pro

# From npm (prebuilt)
dsh plugin --profile demo add dsh-translate-pro

Verify the layer:

dsh --profile demo --dump-config   # shows a "# == dsh-translate-pro" layer

Start and use it:

SILICONFLOW_API_KEY=sk-xxx dsh --profile demo

🛠 Tools

translate

Translate text with full control:

Parameter Type Description
text string (required) The text to translate
target string Target language (default: 中文)
source string Source language (auto-detected if omitted)
style string formal / casual / technical / literal
glossary string Terminology map, e.g. API=应用程序接口,LLM=大语言模型
model string deepseek-ai/DeepSeek-V4-Flash (default) or deepseek-ai/DeepSeek-V3.2

translate_file

Translate an entire file, preserving its format:

Parameter Type Description
path string (required) File to translate (workspace-relative or absolute)
target string Target language (default: 中文)
style string Translation style
glossary string Terminology map
inPlace boolean Write the translation back to the file (default: false)
model string Engine model

💬 Examples

<!-- In your DSH conversation -->

翻译:"The quick brown fox jumps over the lazy dog." 到英语 casual 风格

用 translate_file 把 README.md 翻译成中文并写回 (inPlace: true)

把这段 API 文档翻译成日语,术语表:API=API, function=関数

🧩 Structure

dsh-translate-pro/
├── package.json       # declares dsh.bundle
├── cordis.patch.yml   # the layer applied when a profile lists this bundle
└── index.js           # plugin module: translate + translate_file tools

⚠️ Note

  • inPlace writes require file write permissions in your dsh profile's sandbox policy.
  • Translation is powered by DeepSeek models hosted on SiliconFlow — data is sent to that API.

📄 License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-translate-pro」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:ShiXiangYu2/dsh-translate-pro

Headless(CLI)profile:

dsh plugin --profile headless add github:ShiXiangYu2/dsh-translate-pro

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →