AI Agent Hub
Back to plugins
🎮

dsh-l10n-hardpatch

Fun & Dress-up Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install lingyingaojue/dsh-l10n-hardpatch

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install lingyingaojue/dsh-l10n-hardpatch in DeepSeek Harness to install one-click; the source is hosted at https://github.com/lingyingaojue/dsh-l10n-hardpatch

About this plugin

Parts of the DSH interface—command menu descriptions, permission preset labels, plan-review buttons, trajectory view tags—ship as hardcoded English strings baked into the package files, with no i18n override hook provided by the project. Translating them means editing the package files directly, and every DSH upgrade silently reverts those edits, forcing you to re-patch by hand after each release.

dsh-l10n-hardpatch takes a different approach: on plugin load it scans every live copy of the relevant packages (global npm dependency tree, every level of node_modules under ~/.dsh/profiles, including pnpm store layouts) and performs an idempotent, whole-line replacement of 144 known English-to-Chinese string pairs. If a line is already in Chinese it is skipped; if it matches the original English it is swapped; if nothing matches the file is left untouched. The scope covers core packages such as dsh-command-compact, dsh-permission-presets, dsh-plan-mode, and dsh-client-ui-trajectory. Because the replacement is line-precise it never touches code logic, a post-replacement syntax check guards against breakage, and any unexpected error only emits a warning without blocking the plugin loading pipeline. When a DSH upgrade causes the English strings to regress, a simple restart re-applies the patch automatically—no manual intervention needed.

If you work through DSH Web daily and are tired of the half-English, half-Chinese interface that keeps reverting on every upgrade, install this plugin once, restart, and stop worrying about it.

Use Cases

  • DSH upgrade reverts English strings; a simple restart auto-restores all Chinese labels
  • Command menus, permission presets, plan-review buttons, and trajectory view tags need Chinese with no official i18n hook
  • Avoid manually editing package files after every DSH release; install once and it just works
  • Hit the actual loaded package copies even under multi-profile and pnpm store layouts

Best For

  • Chinese-speaking users who work through DSH Web day to day
  • Developers fed up with re-patching translations after every DSH upgrade
  • End users who want a fully Chinese DSH interface out of the box without i18n config