為網頁介面加入繁體中文(zh-Hant)語言,經語言服務註冊,每個 namespace 各有一份字典,並可在「設定 → 一般 → 語言」揀選。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-zh-hant
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:wilsonchengassistant/dsh-zh-hant
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
繁體中文 language pack for DeepSeek Harness
(DSH). It adds a third language to the web GUI — zh-Hant — next to the shipped
zh (Simplified) and en, and puts it in Settings → General → Language.

Nothing in DSH is patched, no bundle is forked, and no other plugin is modified.
The locale service in @deepseek-ai/dsh-client-locale is explicitly extensible,
so Traditional Chinese is a plugin: it registers one language definition and one
dictionary per namespace, and the running app picks both up immediately.
Install
dsh plugin add dsh-zh-hant # from npm
dsh plugin add file:./plugins/dsh-zh-hant # from a local checkout
Then choose 繁體中文 in Settings → General → 語言.
The dsh web host must be running with the plugin already installed. A
server started before dsh plugin add keeps serving the client module graph it
built at boot, so the language does not appear until it is restarted. If the
Plugins panel lists the plugin but the Language menu does not, that is why.
What it covers
86 namespaces, 5,439 keys, ~180 KB — every dictionary the installed web GUI
registers, including the experimental features and the third-party plugins that
opt into ctx.locale.
| Settings | 設定 · 通用設定 · 模型 · 外觀 · 字號大小 · 快捷鍵 … |
| Conversation | 發送 · 插話發送 · 排隊發送 · 停止生成 · 軌跡 · 差異 |
| Sidebar | 摺疊側邊欄 · 新建會話 · 封存 · 刪除會話 · 工作區 |
| Files / preview | 檔案預覽 · 影像預覽 · PDF 預覽 · 沒有可預覽的檔案類型 |
| Plugins, schedules, agents | 外掛 · 提醒 · 子代理 · 預設權限 · 軌跡檢視 |
What it does not cover
This is a language pack for DSH's own interface. It deliberately does not reach into anything else:
- Other plugins' hardcoded copy.
dshmarketnever callsctx.locale, so its panel title stays 「插件市场」. Editing that plugin's source is not this package's business — a plugin that wants Traditional Chinese registers its own dictionaries. - Copy captured outside the dictionary — plugin titles from package
manifests (
ctx.locale.resolveText), command descriptions read once at registration time. - Model output, file contents, and anything the user typed.
How the dictionaries are built
The web GUI has ~2,700 keys and DeepSeek ships new ones every release, so the
dictionary is generated from the zh values the installed build already
contains, never hand-maintained:
scripts/extract-locales.mjs read every ctx.locale.register() call site out of
the installed client bundles (shorthand consts,
esbuild-renamed consts, object spread and all)
│
▼
scripts/build-dictionaries.mjs OpenCC cn → tw → twp, per value
│
▼
lib/client.js src/client.js with the literal spliced in
Rebuild after a DSH upgrade:
npm install # opencc-js, build-time only
npm run build # → lib/client.js
npm test # behaviour + conversion checks
npm run build:tw and npm run build:t produce the character-only variants if
you prefer 設置/文件 to 設定/檔案.
Two details that are easy to get wrong:
- A single
cn → twppass is not a fixed point.STPhrasesrewrites 发送 to 發送 andTWPhrasesthen finds nothing Simplified left, so 待发送附件 comes out as 待發送附件 and only becomes 待傳送附件 on a second pass. Runningcn → twto completion and applying the variant pass afterwards is both more idiomatic and idempotent. fallbackiszh, noten. A key this pack does not cover falls back to Simplified rather than English, which is the right failure mode for a Traditional reader — and it means a namespace added by a future release degrades instead of breaking.- A namespace the extractor cannot parse is a gap, not a rounding error. The
app registers its own dictionaries, so a namespace the pack does not cover
falls back to the shell's own Simplified
zh— one Simplified screen inside an otherwise Traditional app. The extractor once misseddirectory-browserbecause that bundle registers from inside a loop (for (const [locale, dict] of dictionaries)), and nothing said so: the pack simply had one namespace fewer.npm run extract -- --strictnow fails on any namespace that yields no dictionary, andnpm testasserts it.
Tests
npm test checks the registration contract (one language, one dictionary per
namespace, the three-argument register form), that a zh-Hant id already owned
by another pack is a warning rather than a boot failure, that the key set matches
the installed bundles exactly, that no Simplified-only character survives
the conversion, and that the extractor recognises every namespace the installed
bundles register.
License
MIT
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 10735
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 10735
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 8661
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7538
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
omdsh-dev/DSH-better-sidebar★ 5419
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
omdsh-dev/dsh-genui★ 1103
助手回复内渲染交互式 UI 组件:布局、图表、表单、测验、mermaid、3D 场景与回传事件循环。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。