Preface¶
When reading English conversations, tool output, or logs in DeepSeek Harness (DSH), a common workflow is to copy text into an external translation page or open a separate plugin panel. That easily severs the connection between the selected text and its context, and is even more awkward while streaming output is still updating. The community plugin dsh-selection-translator solves this: in the Web UI, after selecting text, right-click and use the context menu to replace the selection in place with Chinese. Right-clicking again can restore the original text—no pop-ups and no new message added.
The DSH ecosystem emphasizes “everything is a plugin”; the plugin directory is maintained by the community site and is not officially affiliated with DeepSeek / High-Flyer. The facts in this article come from the plugin’s GitHub README and package.json (current package version 0.2.1, license MIT).
What This Is¶
dsh-selection-translator (repository DevinMx520/dsh-selection-translator) is published by maintainer DevinMx520 and categorized as a client-side plugin. It targets scenarios where you read selectable text inside the Harness Web UI: the right-click menu adds “翻译成中文” alongside “Copy”, and the translation replaces the original selection; right-clicking a translated fragment again offers “取消翻译” to restore the original text.
Core Features¶
- Select text and right-click → the menu includes Copy / 翻译成中文 (the menu labels are fixed in Chinese and do not follow the UI language).
- Translation results overwrite the selection in place, without pop-ups and without adding a new message; translated fragments are marked with a dotted underline.
- Right-clicking translated text again → 取消翻译 restores the original text.
- Mixed Chinese–English selections are translated entirely into Chinese.
- After installation, it also mounts Harness’s built-in
@deepseek-ai/dsh-experimental-translatorfor anonymous translation services, with no account or API key required.
Installation & Enabling¶
After the plugin is published to npm, install it via Harness’s plugin manager using the package name:
dsh-selection-translator
The README notes that for local development you can clone the repository and install from a local directory in the plugin manager, or add that directory as a dependency of your profile; this article does not cover git clone steps.
Before installing, review the repository source code and the MIT license yourself. The plugin runs with the permissions of the current DSH process and inserts a translator-related bundle; if another bundle in your environment also mounts a translator, a service conflict may occur (see limitations below).
Typical Usage¶
- Drag to select text in a conversation, tool output, or any selectable content.
- Right-click the selection and choose “翻译成中文”.
- The Chinese text overwrites the original in place.
- Right-click the Chinese fragment again and choose “取消翻译” to restore the original text.
When translating long text, the menu may display a progress bar; closing the menu cancels the ongoing translation.
Privacy & Data Destination¶
The selected text leaves your machine and is sent to Harness’s anonymous translation provider (the README states that this is currently Microsoft Bing’s Edge translation endpoint). This plugin does not store the original or translated text itself, nor does it send a conversation ID with translation requests; translation is performed by Harness’s translator service, and results are not persisted. Do not use the translation feature for text containing sensitive information.
Use Cases & Caveats¶
Good for: developers who want to quickly understand English fragments, tool returns, or mixed Chinese–English selections inside the Harness Web UI while preserving page layout and avoiding opening an extra translation window.
Limitations (excerpted from the README’s “Known limitations”):
- Text is translated per paragraph/text node, and long text is automatically split into segments; for very short fragments (especially when split by inline code), the translation may be less fluent than translating a full paragraph.
- Fully selected paragraphs preserve paragraphs, headings, lists, and inline code/code blocks; inline styles that do not carry code semantics (e.g., bold, links) will be flattened.
- When a message is re-rendered by React (e.g., streaming output or switching sessions), translated fragments may be lost and the original text may reappear; you can translate again.
- If another bundle also mounts a translator, service conflicts may occur.
Implementation summary (for troubleshooting): client.js registers a floating menu in the shell.overlay slot; the Electron desktop client handles the native context menu by saving and clearing the selection, etc. index.js registers POST /api/dsh/selection-translator on the Host side and calls Harness’s translator service; fragments over 3500 characters are automatically chunked and then concatenated. cordis.patch.yml mounts both the translator service and this plugin.
Closing¶
dsh-selection-translator brings “select → right-click → in-place Chinese → right-click again to restore” into the Harness UI, making it a good fit for reading English output daily without interrupting the conversation flow.
- Community directory page: https://www.skillhub.cn/plugins/DevinMx520/dsh-selection-translator
- Source code & documentation: https://github.com/DevinMx520/dsh-selection-translator