插件目录 / Developer / dsh-zh-hant-hk
dsh-zh-hant-hk
已验证 · 实测可装 Argonaut790
功能简介
DeepSeek Harness插件:香港繁体中文用语(對話、設定、儲存)
可用 — 实测通过,早期项目
DeepSeek Harness插件:香港繁体中文用语(對話、設定、儲存) 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-zh-hant-hk
Hong Kong Traditional Chinese wording for DeepSeek Harness.
The official UI converts Simplified Chinese to Traditional character by character. That turns mainland software terms into strings Hong Kong people do not say:
| Stock 繁體 | This plugin |
|---|---|
| 新會話 | 新對話 |
| 設置 | 設定 |
| 保存 | 儲存 |
| 加載中 | 載入中 |
| 重命名 | 重新命名 |
| 資料夾 | 檔案夾 |
| 默認 | 預設 |
| Read Only | 唯讀 |
| Workspace Write | 工作區寫入 |
| Full access | 完整存取 |
| 子代理 | sub-agent |
Product words stay English, as Hong Kong UI usually does: Agent, sub-agent, skill, Think, plan mode, API Key.
The Conversation tab is already 「對話」. After this plugin, “New session” matches it.
Official DeepSeek Harness currently only lists 中文 and English. This plugin adds 繁體中文 to that menu, converts Simplified chrome to Traditional, then applies the Hong Kong wording above.
Install
From any directory:
dsh plugin --profile web add github:Argonaut790/dsh-zh-hant-hk
Or from a local checkout:
dsh plugin --profile web add /home/you/Programming/dsh-zh-hant-hk
Then restart (or refresh) dsh web and set the UI language to 繁體中文.
Remove with:
dsh plugin --profile web remove dsh-zh-hant-hk
A checkout that already contains lib/ installs without a build step. After you edit sources, run npm test (that rebuilds lib/ and the Harness client bundle). The file Harness loads is lib/client.bundle.js, not the plain TypeScript emit.
How it works
This package is a DeepSeek Harness profile bundle:
cordis.patch.ymlinserts the plugin into the composed loader tree.- The browser half waits for
locale, adds 繁體中文 to the Language menu, wrapslocale.translate(the single path every boundtruns through), converts Simplified chrome to Traditional, and applies the Hong Kong phrase table only when the active locale iszh-Hant. - Hardcoded English permission labels (
Read Only,Workspace Write,Full access) are rewritten in the DOM, because those strings never go through the locale service. - The browser loads
lib/client.bundle.js, which registers through Harnesswindow.__ModuleLoader__. Plaintscoutput cannot be served as the client entry. - Simplified Chinese and English are unchanged.
It does not fork the harness and does not rewrite every string by hand.
Other plugins
Anything that renders through the locale service is covered automatically. The locale.translate wrap is service-wide: whether a plugin registers its own namespace and binds it at boot, or re-derives t per render, its output is converted when 繁體中文 is active — including t functions another plugin captured before this plugin loaded (they call this.translate at call time, so the patch still catches them). Plugins that only ship en dictionaries stay English, matching the HK convention of keeping product words in English.
Hardcoded strings need an opt-in. To protect user content, text nodes are not converted wholesale. A plugin that hardcodes Simplified Chinese in its own UI opts its root in, and this plugin's DOM watcher converts it (and keeps converting after re-renders):
// plain DOM / vanilla JS
window.__zhHantHk__.mark(myRootEl)
// or simply
myRootEl.setAttribute('data-zh-hant', '')
The watcher fully converts text nodes, aria-label and title inside opted-in roots while 繁體中文 is active. Everything outside stays untouched.
The API published as window.__zhHantHk__:
| Member | Purpose |
|---|---|
toTraditional(text) |
character-level Simplified → Traditional |
applyPhrases(text) |
Hong Kong lexical replacements |
convertText(text) |
both of the above |
isMarked(el) |
whether el (or an ancestor) opted in |
mark(el) |
opt a UI root in |
<code>/<pre>/inputs and editable content are never rewritten, even inside opted-in roots.
Develop
npm test
Publish
- Put this repo on GitHub.
- Add the topic
dsh-pluginso other Harness users can find it. - Point
package.jsonrepository.urlat that repo if the owner differs. - Tell people:
dsh plugin --profile web add github:Argonaut790/dsh-zh-hant-hk
中文
官方 Language 而家得「中文」同 English。呢個插件會加「繁體中文」,再把簡體轉成繁體,然後改成港式用詞:新對話、設定、儲存、檔案夾、唯讀、完整存取。產品詞維持英文:Agent、sub-agent、skill、Think、plan mode、API Key。唔會寫「子 Agent」。
dsh plugin --profile web add /path/to/dsh-zh-hant-hk
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-zh-hant-hk」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Argonaut790/dsh-zh-hant-hk Headless(CLI)profile:
dsh plugin --profile headless add github:Argonaut790/dsh-zh-hant-hk 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。