dshbase

插件目录 / UI & Skins / dsh-plugin-better-locale

dsh-plugin-better-locale

已验证 · 实测可装 HuanLinOTO

✓ 持续维护 基于 7 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-23最近推送
跨平台平台

功能简介

DSH web 插件:通过运行时 monkey-patch LocaleRuntime.lookup 注入第三语言(ja/ko/...)覆盖,保持 dsh active locale 不变;通过 DSH 设置页通用分区暴露切换 UI。 | DSH web plugin: injects third-language (ja/ko/...) overrides via a runtime monkey-patch of LocaleRuntime.lookup, leaving the dsh active locale unchanged; exposes a switcher UI through the DSH settings page (General section).

✅
我们的评价
可用 — 实测通过,早期项目

DSH web 插件:通过运行时 monkey-patch LocaleRuntime.lookup 注入第三语言(ja/ko/...)覆盖,保持 dsh active locale 不变;通过 DSH 设置页通用分区暴露切换 UI。 | DSH web plugin: injects third-language (ja/ko/...) overrides via a runtime monkey-patch of LocaleRuntime.lookup, leaving the dsh active locale unchanged; exposes a switcher UI through the DSH settings page (General section). 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-plugin-better-locale card

dsh-plugin-better-locale

中文 | English

A DSH web plugin that adds 19 third-language overrides (Japanese / Korean / French / German / ...) on top of DSH's native Chinese / English. Coverage spans DSH's own UI copy and all third-party plugins that have opted in.

Package @huanlin/dsh-plugin-better-locale
Repo huanlinoto/dsh-plugin-better-locale
License AGPL-3.0

Supported languages

The override borrows DSH's English slot to render a third language — after switching, the UI shows the selected override language; uncovered parts fall back to English.

Language id Label
Japanese ja 日本語
Korean ko 한국어
French fr Français
German de Deutsch
Portuguese pt Português
Arabic ar العربية
Hindi hi हिन्दी
Indonesian id Bahasa Indonesia
Turkish tr Türkçe
Vietnamese vi Tiếng Việt
Thai th ไทย
Russian ru Русский
Italian it Italiano
Dutch nl Nederlands
Swedish sv Svenska
Polish pl Polski
Traditional Chinese (HK) zh-HK 繁體中文(香港)
Traditional Chinese (TW) zh-TW 繁體中文(台灣)
Traditional Chinese (MO) zh-MO 繁體中文(澳門)

Install

# npm registry
dsh plugin --profile web add "@huanlin/dsh-plugin-better-locale"

# or github ref
dsh plugin --profile web add "github:huanlinoto/dsh-plugin-better-locale"

After install, restart dsh web and hard-refresh the browser (Ctrl+Shift+R).

Usage

  1. Switch DSH to English first (Settings → Language → English).

    The override borrows DSH's English slot — it is inert while DSH is on Chinese. The switcher shows a "switch DSH to English to view [language]" hint in that case.

  2. Pick an override language in Settings → General section.

    better-locale registers a language picker row in DSH's settings General section (right after the native Language row). Open the dropdown and pick a target language — the UI switches immediately.

  3. Switch back to native: pick "Use DSH native (zh/en)" in the same row.

The selection persists to browser localStorage and survives page refresh.

Coverage

  • DSH itself: built-in namespaces (common / settings.locale / command / ...) — see src/client/dictionaries/<lang>.ts.
  • Third-party plugins: plugins that have opted into better-locale (e.g. dsh-better-sidebar, yet-another-subagent, dsh-aigc-canvas, and the rest of the huanlinoto series) follow the override; non-opted-in plugins fall back to English.

Want your plugin to follow the override too? See the Developer Guide.

Known limitations

  • Must switch to English: the override only takes effect when DSH's active locale is en. While DSH is on Chinese the override is fully inert (native Chinese preserved, no mixed languages).
  • Coverage is partial: uncovered namespaces / keys fall back to English. See TRANSLATION.md for the coverage table (regenerate with pnpm run gen:translations).
  • Persistence uses localStorage: the selected override id is stored in browser localStorage, not in DSH's locale.preference (we bypass the native schema enum). Not shared across browsers / profiles.
  • Web only: the client bundle targets the browser; it does not run in Node.

License

AGPL-3.0

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-better-locale」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-better-locale

Headless(CLI)profile:

dsh plugin --profile headless add github:HuanLinOTO/dsh-plugin-better-locale

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →