DeepSHPlugins
dsh-translate-pro 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-translate-pro

工具與整合JavaScript

專業翻譯:18 種目標語言、4 種風格(正式/口語/技術/直譯)、術語表控制譯名、整檔案翻譯(README/文件/字幕)並保留 Markdown 與程式碼塊格式;經 SiliconFlow 呼叫 DeepSeek。

3 StarsShiXiangYu2 更新時間 2026-08-15
訪問 GitHub 倉庫
dsh-translate-pro 專案預覽

專案介紹

中文

專業翻譯:18 種目標語言、4 種風格(正式/口語/技術/直譯)、術語表控制譯名、整檔案翻譯(README/文件/字幕)並保留 Markdown 與程式碼塊格式;經 SiliconFlow 呼叫 DeepSeek。

English

Professional translation for DSH: 18 target languages, 4 styles (formal/casual/technical/literal), glossary-controlled terminology, and whole-file translation (README/docs/subtitles) with Markdown/code-block format preservation; powered by DeepSeek via SiliconFlow.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
ShiXiangYu2
倉庫
ShiXiangYu2/dsh-translate-pro
GitHub Stars
3
Forks
0
開發語言
JavaScript
許可證
未記錄
最近推送
2026-08-15
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

53/ 100
維護活躍
81
文件與實用資訊
85
生態關注度
17
安裝便捷訊號
55
專案宣告訊號
80

README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

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

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

🌐 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:

FeatureWhat it does
🌍 18 target languagesChinese, English, Japanese, Korean, French, German, Spanish, Russian, Portuguese, Italian, Arabic, Thai, Vietnamese, Indonesian, Turkish, Hindi, Polish, Dutch
🎭 4 writing stylesformal / casual / technical / literal — from legal documents to daily chat
📖 Glossary controlPin terminology: API=应用程序接口, LLM=大语言模型 — consistent terms across every translation
📄 Whole-file translationTranslate READMEs, docs, subtitles, code comments while preserving Markdown, code blocks, URLs, and paths
✍️ In-place write-backOne call translates your file and writes the result back — instant localized docs
🧠 DeepSeek enginePowered by DeepSeek V4-Flash (fast/cheap) or V3.2 (highest quality) via SiliconFlow
🎨 Conversation cardsSide-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:

ParameterTypeDescription
textstring (required)The text to translate
targetstringTarget language (default: 中文)
sourcestringSource language (auto-detected if omitted)
stylestringformal / casual / technical / literal
glossarystringTerminology map, e.g. API=应用程序接口,LLM=大语言模型
modelstringdeepseek-ai/DeepSeek-V4-Flash (default) or deepseek-ai/DeepSeek-V3.2

translate_file

Translate an entire file, preserving its format:

ParameterTypeDescription
pathstring (required)File to translate (workspace-relative or absolute)
targetstringTarget language (default: 中文)
stylestringTranslation style
glossarystringTerminology map
inPlacebooleanWrite the translation back to the file (default: false)
modelstringEngine 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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案