Preface¶
In DeepSeek Harness (DSH), the common approach to translation is starting a standard conversation and relying on prompts to constrain the model to “output only the translation.” However, the model might still include explanations, quotes, or code fences, and line breaks and list formatting can easily be disrupted. Furthermore, if you need to frequently switch language directions or translation styles, the cost of modifying prompts each time is relatively high.
dsh-translate, released by maintainer 576576, is categorized as a model inference related plugin; the same entry can be found in the community directory SkillHub. It turns “Translation Mode” into an Agent preset and provides source/target language and style controls in the input box toolbar, with UI text supporting 18 languages.
What is this¶
dsh-translate is a bundle plugin for DSH (package name dsh-plugin-translate, current version 2.0.4, MIT license). The core goal is clear: when creating a new session, “Translation Mode” can be selected, and the model returns only the translation based on the preset; simultaneously, language and style selectors consistent with native control styles are mounted on the composer toolbar.
Core Features¶
Translation Mode Preset¶
After selecting “Translation Mode,” the model output is constrained to the translation itself: no explanations, no quotes, no code fences, and it strives to preserve the original text’s line breaks, numbering, and code block structure.
Input Box Toolbar¶
Displayed only in Translation Mode sessions, the layout is: [Source Lang▾] [⇄] [Target Lang▾] [Style ▾], with an appearance consistent with native model and permission selectors.
Language Menu and “Auto” Target Language¶
The language menu supports searching, and you can also directly input custom languages (+ to add, deletable); selected items are marked with a checkmark. If “Allow same source and target language” is disabled in settings, the two menus will exclude the language selected by the other.
Both Source Language and Target Language default to “Auto”. When the Target Language is “Auto”, the translation direction is determined sentence by sentence:
| Original Language | UI Language | Translate to |
|---|---|---|
| Not UI Language | Any | UI Language |
| Is UI Language | Not English | English |
| Is English | English | Chinese |
Style Menu and Settings Page¶
You can fill in translation styles in the style menu, and the content is automatically saved; you can also save it as a preset, apply it with one click, or delete it. When the current style matches a preset, the toolbar button displays the preset name, and the preset name input box will be prefilled with that name; simply clicking “Save Preset” updates that preset.
In “Settings → Translation Mode”, you can configure priority source/target languages, allow or disallow identical source and target, and manage style presets. The title and description on the plugin management page also utilize 18-language i18n.
Installation and Activation¶
This repository is a DSH bundle and must be installed via the Plugin Manager; the installation target should be the absolute path of this repository on your local machine (do not use commands like dsh plugin add constructed from the repository name).
plugin_manager({ action: "install_bundle", target: "<absolute path to this repo>" })
After installation is complete, enable the plugin in “Settings → Plugins”. When creating a new session, select “Translation Mode” in the preset selector to use it. The bundle specification version marked in the README is DSH bundle spec 0.2.1-rc.2; for more detailed maintenance and implementation instructions, see docs/agent/README.md in the repository.
Typical Usage¶
-
Complete the installation and activation of the plugin as described in the previous section.
-
Create a new session and select “Translation Mode” in the preset selector.
-
Set the source language, target language (use ⇄ to swap directions), and translation style in the toolbar above the input box; for long-term defaults, adjust priority languages and style presets in “Settings → Translation Mode”.
-
Paste or input the content to be translated in the input box and send it; under the Translation Mode preset, the reply should be a pure translation, striving to maintain the original paragraph and code block morphology.
Use Cases and Notes¶
Suitable for developers or daily users who frequently perform Chinese-English or multi-language translation within DSH, and desire stable output formatting without getting bogged down in prompts. Style presets are suitable for repeatable requirements such as fixed glossaries, colloquial/written tones, etc.
The plugin runs with the permissions of the current DSH process; please review the GitHub source code and the MIT license yourself before installation. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer. The information in this article is based on the repository README and package.json.
Conclusion¶
dsh-translate condenses translation from “writing prompts every time” into a preset plus toolbar: outputting only translations, configurable language directions and styles, and featuring an 18-language interface. To try it out or for secondary development, you can visit the directory page https://www.skillhub.cn/plugins/576576/dsh-translate and the repository https://github.com/576576/dsh-translate.