Preface

System prompts, tool descriptions, runtime contexts, and frontend menus in DSH are displayed in English by default. For users who need to read prompts, troubleshoot tool parameters, or collaborate locally, English text creates an extra reading burden. Existing approaches usually require maintaining prompt dictionaries, frontend translations, or source patches, which may become invalid after upgrading DSH.

Introduce zjl1989-li/dsh-harness-zh-cn. It is a DeepSeek Harness Chinese localization plugin that translates all of DSH’s system prompts, tool descriptions, runtime contexts, and frontend UI text into Chinese at runtime.

Positioning

This is a pure runtime plugin, consisting of a Host half and a Client half. It works via DSH’s extension points without modifying any DSH source code; it reverts to English after unloading the plugin.

Repository information is as follows:

  • Name: zjl1989-li/dsh-harness-zh-cn
  • Maintainer: zjl1989-li
  • License: MIT
  • package.json declared version: 0.2.0
  • package.json declares dsh.client.platform as web
  • package.json declares peerDependencies:
  • @deepseek-ai/cordis ^4.0.1
  • @deepseek-ai/dsh-system-prompt ^0.1.0-rc.6

It does not touch node_modules and remains effective after upgrading DSH.

Core Functions

Runtime Localization

The plugin localizes the following at runtime:

  • DSH’s system prompt sections
  • Runtime context contexts
  • Tool descriptions and parameter descriptions
  • cordis API directory
  • Frontend UI labels
  • Slash command menu descriptions

The Host half works via the system-prompt/assemble waterfall hook. After assembling the prompt, it replaces the model-visible English text and patches commands.list to localize slash command menu descriptions.

The Client half patches ctx.locale.lookup, making namespaces with built-in zh dictionaries take precedence on t() tags. This process does not modify DSH frontend code.

Command Menu Localization

Command menu localization only translates display descriptions; command names remain in English.

The plugin does not change command parsing, dispatching, fuzzy matching, or display filtering behavior.

Plugin Marketplace Description Translation

When used with dsh-plugin-marketplace, the English descriptions in the plugin marketplace are first instantly translated via a vocabulary list, then batch-translated by an LLM with cache refresh.

If the LLM is unavailable, it automatically falls back to vocabulary translation.

Configurable Switches

The three types of translations—includeSections, includeContexts, and includeTools—can be disabled individually.

The default configuration is as follows:

  • includeSections: true
  • includeContexts: true
  • includeTools: true
  • verbose: false

Installation

The following introduces several installation methods.

npm Installation

npm install dsh-harness-zh-cn

pnpm Installation

pnpm add dsh-harness-zh-cn

Installation from GitHub

npm install git+https://github.com/zjl1989-li/dsh-harness-zh-cn.git

Enabling

Enable via DSH Web GUI

In DSH Web GUI’s Settings → Plugin Management, add dsh-harness-zh-cn and restart for changes to take effect.

Enable via Profile Bundle List

Add dsh-harness-zh-cn to the dsh.profile.bundles list in the profile’s package.json.

For example, appending to an existing bundle array:

{
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-harness-zh-cn"
      ]
    }
  }
}

Enable via cordis.patch.yml

Append a plugin entry in the DSH profile’s cordis.patch.yml and configure the translation switches:

- $plugin: dsh-harness-zh-cn
  config:
    includeSections: true
    includeContexts: true
    includeTools: true

Translation Boundaries

The following text will remain unchanged:

  • [exit code: N]
  • [killed by signal: X]
  • [sandbox: ...]
  • [stderr]

Code identifiers are left untranslated.

Scenarios and Notes

This plugin is suitable for the following scenarios:

  • Reading DSH system prompts, contexts, and tool descriptions
  • Using Chinese interface text in the Web GUI
  • Localizing slash command menu display descriptions
  • Localizing plugin marketplace descriptions using dsh-plugin-marketplace

Notes before installation:

  • The plugin is loaded as a DSH plugin and runs with the current dsh process permissions.
  • Source code and license should be checked before installation.
  • Marketplace description translation requires dsh-plugin-marketplace to be installed.
  • This plugin is licensed under MIT, does not modify DSH source code, and reverts to English upon uninstallation.

Getting

GitHub Repository:

https://github.com/zjl1989-li/dsh-harness-zh-cn

Plugin Directory Page:

https://www.skillhub.cn/plugins/zjl1989-li/dsh-harness-zh-cn

This directory page link is from plugin clues; verified materials do not provide content for this page. It should not be interpreted as an official app store for DeepSeek or Huixuan.