dsh-translator
基于 DSH 的有道风格划词翻译:划选即现「译」按钮,harness 自带大模型,零 API key / Youdao-style word-selection translation for DSH: select text, click 「译」, powered by the harness's own LLM, no API keys
- Stars
- 1
- Language
- JavaScript
- Created
- Aug 21, 2026
- Updated
- Aug 21, 2026
Introduction
dsh-translator
Youdao-style word-selection translation for DeepSeek Harness (DSH).
Select any text — a conversation message, the sidebar, an input field — and a floating 「译」 button appears at the selection's top-right corner. Click it to get a translation card. Translations are produced by the harness's own LLM: no API keys, no third-party endpoints, your selected text never leaves the model pipeline you already configured.
| English | 中文 README |
|---|
Usage
Select text → click the 「译」 button at the selection's top-right corner → the translation card appears. That's it.
Features
- Word-selection trigger anywhere in the app; floating button follows the selection, theme-aware (light/dark)
- Automatic direction detection (Chinese → English, everything else → Simplified Chinese)
- Translation card with source, direction badge, result, and retry on failure; dismiss with Esc / click-outside / scroll
- Uses your configured default model — zero extra configuration
Install
From npm:
dsh plugin --profile web add @nicearrack/dsh-translator@latest
From a local checkout:
dsh plugin --profile web add /path/to/dsh-translator
From git:
dsh plugin --profile web add github:nicearrack/dsh-translator
Git installs run the package's
preparebuild script. pnpm ≥ 10 requires one-time authorization: addallowBuilds: { "@nicearrack/dsh-translator": true }to the profile'spnpm-workspace.yamlif the first install is refused.
Uninstall
dsh plugin --profile web remove @nicearrack/dsh-translator
Restart the instance (dsh --profile web) for the removal to take effect.