Preface¶
The built-in languages of DeepSeek Harness (DSH) are currently mainly Simplified Chinese (zh) and English (en). In daily use in Taiwan, common issues include: the main interface is in Simplified Chinese, third-party plugins each carry their own Simplified Chinese copy, and language packs often lag behind new versions — resulting in interfaces that appear “half Traditional, half Simplified,” or translations that silently stop working after an upgrade.
dsh-zh-tw-ui does not add a new locale to the DSH language list, nor does it register a full dictionary package. Instead, at the browser rendering layer, it converts the Simplified Chinese already present on the page into Traditional Chinese (Taiwan usage). Below we introduce its positioning, working principle, and how to install it from the repository into a desktop / web profile.
What Is This¶
- Name:
dsh-zh-tw-ui(the npm package name matches the repository name) - Maintainer: linmino
- Version (package.json): 0.1.0, MIT license
- Category: classified as “fun dressing-up” in the community catalog — essentially localization of the interface presentation layer, without changing DSH core logic
- One-liner: In Web / Desktop clients, it uses DOM text conversion (OpenCC + a small override table) to turn all rendered copy on the page into Traditional Chinese (Taiwan usage), including Simplified Chinese strings displayed by DSH itself and by third-party plugins in the interface
You can still select Settings → General → Language: 中文 (Simplified) in the settings; the underlying locale remains zh, and what you see on screen is the converted Traditional Chinese. The README explains this deliberate “config vs. display” mismatch as an intentional design, so that after removing other language packs, the interface is still in Chinese and there is still content available for conversion:
Settings -> General -> Language: 中文 (Simplified) <- the app's own locale
What you actually see: 繁體中文(台灣) <- converted on screen
Core Features¶
Coverage¶
Based on the goals (G1–G5) stated in the project README, the plugin focuses on:
- Full-page interface: DSH’s own copy, third-party plugin copy, and subsequently dynamically inserted content (streaming output, panel updates, etc.) are all handled uniformly at the DOM layer.
- Decoupled from DSH versions: it does not declare
@deepseek-ai/*peers, does not patchLocaleRuntime, and does not register dictionary namespaces, so it does not depend on the internal API shape of any particular DSH version. - Reversible and auditable: it provides a runtime switch, an override table, and skip markers (see the security boundary below); the install script backs up profile-related files.
Non-goals (explicitly stated in the README): it is not a language pack; it does not translate English and does not call models; it does not rewrite persisted data; Web / Desktop clients only (TUI and profiles without a DOM are not applicable); canvas-drawn text and cross-origin iframes are not handled.
Conversion Mechanism¶
Text nodes on the page roughly go through the following path (as illustrated in the README):
screen text → DOM text node → OpenCC cn→twp → override table → 写回 DOM
↑
└── MutationObserver:新增节点 / 文本变更时重跑
- Engine: OpenCC
cn → twp(Mainland Simplified → Traditional, including Taiwan vocabulary), e.g., 设置→設定, 网络→網路, 软件→軟體, 插件→外掛, etc. - Override table:
DEFAULT_OVERRIDESinsrc/convert.mjscorrects terms not covered by OpenCC or not following Taiwan usage (e.g., 只讀→唯讀, 超時→逾時, 許可權→權限). - Document language: sets
<html lang>tozh-Hant-TW, so browsers can select Taiwan glyph forms. - Performance and React: memoizes by text node; skips strings without Chinese characters; writes back only on actual changes, and tracks its own writes to avoid feedback loops with React.
Security Boundary: What Will Not Be Modified¶
Copying code and editing inputs should behave exactly the same as when the plugin is not installed. Summary of the README table:
| Target | Behavior |
|---|---|
<code> <pre>, CodeMirror / Monaco / xterm, etc. |
Subtree and attributes are not converted |
<input> <textarea>, etc. |
Only placeholder / title may be converted; user input is untouched |
contenteditable |
Not converted |
<script> <style> <canvas> <iframe>, etc. |
Not converted |
Elements with data-zh-tw-skip or translate="no" |
Not converted |
| Strings without Chinese characters | Passed through unchanged |
Differences from Other Traditional Chinese Solutions (Background)¶
The README reviewed several community solutions on 2026-10-13: dictionary-based approaches often fail to cover all namespaces and fall back to Simplified Chinese when keys are missing; packages that patch the core may silently stop working after a DSH upgrade; an overly narrow peer range causes the entire package to be skipped by the compatibility gate at startup. The trade-off of this project is: conversion at the presentation layer only, in exchange for version independence and for handling visible copy from third-party plugins as well; presentation-layer limitations (e.g., Simplified Chinese already stored in the database, text inside canvas) are described in the Limitations section of the repository README.
The README mentions dsh-multi-lang-ui as one alternative with similar functionality; this project deliberately maintains a single-responsibility scope of “DOM conversion only, no dictionary synchronization.”
Installation and Activation¶
The README states: the currently recommended path is to install from this repository (the npm publishing section was truncated in the source material, so commands that did not appear in full are not expanded here).
In an environment with Node.js already installed, follow the repository instructions:
git clone https://github.com/linmino/dsh-zh-tw-ui.git
cd dsh-zh-tw-ui
node install.mjs --profile desktop
--profile desktopis the default; for a Web-specific profile, use--profile web.install.mjsdoes four things (all reversible viauninstall.mjsin the rollback direction): it backs up the profile’spackage.jsonandcordis.patch.yml(*.zh-tw-ui.bak); addsdsh-zh-tw-uitodsh.profile.bundles; sets the locale line’spreferencetozh; and linksnode_modules/dsh-zh-tw-uiunder the profile to this directory. The script does not run a package manager and does not recompute the entire profile dependency tree.
After installation, you must restart DeepSeek Harness — new bundles are composed at startup, and merely refreshing the page is not enough.
For uninstalling, use the script in package.json:
node uninstall.mjs --profile desktop
(Use the same desktop / web arguments as during installation.)
Typical Usage¶
- Complete the installation above and restart DSH.
- Under Settings → General → Language, select 中文 (Simplified) (or whatever matches the
zhpreference written by the install script). - Open the Web UI or Desktop client, and confirm that menus, settings, and Simplified Chinese copy from installed third-party plugins on the page are displayed as Traditional Chinese (Taiwan usage).
- If a piece of UI should not be converted, apply
data-zh-tw-skiportranslate="no"on the corresponding DOM element as described in the README (the plugin or page must support such markers).
There are no extra “call an API” steps; conversion happens automatically in the client-side injected logic.
Use Cases and Caveats¶
Who it’s for
- Developers in Taiwan or accustomed to Traditional Chinese (Taiwan usage) who want the DSH Web / Desktop interface unified in Traditional Chinese, without maintaining a giant dictionary that must be updated with every DSH version.
- Users who have installed many community plugins with Simplified Chinese copy, and still want to see Traditional Chinese on screen when dictionary-based language packs cannot cover plugin namespaces.
Important to know
- The plugin is loaded via the bundle mechanism of the current DSH profile and runs in the same front-end environment as the DSH process; before installing, you should read the source code and MIT license of the GitHub repository and evaluate for yourself whether to include it in your working environment.
- Conversion happens at the presentation layer: Simplified Chinese already stored in chat logs and configurations will not be rewritten; exported data and API payloads remain based on the underlying locale and original storage.
- TUI and no-DOM scenarios are not supported; text inside canvas and cross-origin iframes will not be converted.
- Only Simplified → Traditional (Taiwan) conversion is performed; the English interface will not be translated by this.
The DSH ecosystem emphasizes “everything is a plugin”; the plugin directory listing linmino/dsh-zh-tw-ui on SkillHub is a community index and has no official affiliation with DeepSeek / High-Flyer (幻方).
Conclusion¶
If your pain points are “language packs don’t cover everything, translations silently stop working after upgrades, and third-party plugins remain in Simplified Chinese,” you can evaluate the DOM + OpenCC approach of dsh-zh-tw-ui: trading presentation-layer conversion for version independence and coverage, while preserving the boundary that code areas and user input are never rewritten.
- Community catalog: https://www.skillhub.cn/plugins/linmino/dsh-zh-tw-ui
- Source code and full documentation: https://github.com/linmino/dsh-zh-tw-ui