dsh-locale-zh-tw
Manifest validAdds a Traditional Chinese (Taiwan) interface language to the web GUI by converting the installed Simplified Chinese dictionaries when a string is looked up, so interface strings added later are cover
dsh-locale-zh-tw
English · 繁體中文
Traditional Chinese (Taiwan) interface language pack for the DeepSeek Harness web GUI.
DeepSeek Harness ships eight interface languages — English, Simplified Chinese, Japanese, Spanish, French, German, Russian and Brazilian Portuguese. This bundle adds 繁體中文 to that list without shipping thousands of translated strings: at lookup time it converts the installed Simplified Chinese dictionary entries to Taiwan Traditional Chinese, so new UI strings and newly installed plugins are covered automatically.
Install
# from GitHub
dsh plugin --profile <profile> add github:tero0224-droid/dsh-locale-zh-tw
# or from a local checkout
dsh plugin --profile <profile> add /absolute/path/to/dsh-locale-zh-tw
In DSH Desktop, Plugins → Add plugin → local directory installs a checkout just as well. Restart DSH once after installing; the bundle is composed at boot.
Requires DSH >= 0.2.1 (the ctx.locale.addLanguage / ctx.locale.register language-pack API).
Use
Settings → General → Language → 繁體中文. The choice is applied immediately and stored as locale.preference, so later sessions start in Traditional Chinese.
How it works
ctx.locale.addLanguage({ id: 'zh-TW', label: '繁體中文', fallback: 'zh' })registers the language; keys missing from the pack fall back to Simplified Chinese rather than English.- For every namespace the locale runtime already holds, the pack registers a lazy
zh-TWdictionary. Reading a key converts the shippedzhstring on demand, so there is exactly one source of truth. - A short polling sync picks up namespaces that plugins register after boot.
- The conversion table is generated from OpenCC (
s2twp) at build time — 2,644 characters + 114 UI phrases — and embedded inclient.js. No runtime dependency, no network access, no extra model request.
Limitations
- Strings captured at registration time outside the render path (for example command descriptions) keep the language they were registered under, until re-registration. This is a limitation of the locale service itself.
- Rule-based conversion can choose an imperfect term where one Simplified word maps to several Taiwan words. Report such cases and the phrase table can be extended.
- The pack reads the locale runtime's internal
dictsmap. If a future DSH release changes that structure, the pack needs a small update. - Not every product string may exist in the Simplified dictionary; those keys fall back to English or the key itself, exactly like every other locale.
Development
cd tools
npm install # opencc-js, build-time only
node build.mjs # regenerates ../client.js from tools/client.template.js
node smoke.mjs # fake locale runtime: language + dictionary + conversions
tools/client.template.js holds the runtime code; build.mjs injects the generated
character/phrase table. To extend the wording, edit the overrides list in build.mjs
and rebuild.
License
MIT — see LICENSE.
Comments
Loading…
Similar plugins
by wilsonchengassistant
Adds a Traditional Chinese (zh-Hant) language to the web GUI, registered through the locale service with one dictionary per namespace and selectable in Settings, General, Language.
★ 0
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-zh-hantby 2189166478-bot
Translates the interfaces of installed DSH plugins into Chinese with an offline dictionary and a DOM translation layer, toggleable in settings.
★ 2
MIT
JavaScript
Nov 10, 2026
dsh plugin --profile web add dsh-zh-cnby linmino
DeepSeek Harness Web UI in Traditional Chinese (Taiwan) - converts the whole rendered interface, including third-party plugin copy, at the DOM layer.
★ 0
MIT
JavaScript
Oct 13, 2026
dsh plugin --profile web add dsh-zh-tw-uiby Xingkong42
Re-applies Chinese UI labels to the DSH client modules on every start, so translations survive upgrades.
★ 3
MIT
JavaScript
Aug 22, 2026
dsh plugin --profile web add dsh-zh-labelsby wangsan71
DSH Web 介面繁體中文(台灣)語言包:npm install 即可加入 zh-TW 語系,全介面自動簡轉繁,繁中瀏覽器自動切換
★ 0
↓ 59/wk
MIT
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-locale-zh-twInjects a fixed system-prompt section so the agent always replies in Simplified Chinese — including the short narration between tool calls — unless you explicitly ask for another language. Applies to
★ 0
dsh plugin --profile web add dsh-lang-zh