dsh-locale-ru: Add Russian Interface to DeepSeek Harness

Introduction

The DeepSeek Harness (DSH) Web interface natively supports Chinese and English. If a team or user prefers Russian, they currently have to rely on browser translation or endure the English interface, as menus, settings, tasks, and plugin-related text cannot be aligned with DSH’s built-in language mechanisms. This article introduces the community client plugin dsh-locale-ru (maintainer: kvashninsasha-gif). It registers Русский (Russian) via the official DSH localization API, placing it alongside built-in languages. Untranslated strings fall back to English instead of displaying raw keys.

What is this?

dsh-locale-ru is a DSH client-side plugin (Category: Client). It does not rewrite the DOM; instead, it registers the Russian language and namespace-based translation dictionaries with DSH at runtime. According to the README, the dictionary scale is substantial: 2,615 UI strings across 58 namespaces. These were extracted from all 71 @deepseek-ai/dsh-client-* client plugins in DSH version 0.2.0-rc.2, covering common UI areas such as chat dialogs, sidebars, settings, targets, tasks, sub-agents, trajectories, approvals, plugins, terminals, files, plans, and voice input.

The package version is 1.0.0, and the license is MIT. The plugin loads and runs within the DSH process. Before installation, it is recommended to review the source code and LICENSE at the GitHub repository to ensure compliance with your environment policies. Community catalog page: SkillHub - dsh-locale-ru (Independent site, with no official affiliation with DeepSeek or High-Flyer).

Core Mechanism

Registration Method

The plugin utilizes DSH’s built-in localization pathway:

  • Adds a language item via ctx.locale.addLanguage({ id: 'ru', label: 'Русский', fallback: 'en' });
  • Mounts the Russian dictionary for each namespace using ctx.locale.register(ns, 'ru', dict).

Fallback and Uninstallation

  • Fallback ru → en: For keys that are untranslated or added in subsequent DSH versions, the interface displays English rather than the raw key.
  • Reversibility: Registration is attached to ctx.effect. Once the bundle is disabled or removed, the interface reverts to the selectable English/Chinese state, and “Русский” disappears from the language list.

Installation and Activation

The package declares dsh.bundle.patch, allowing installation via the Web interface Plugins page or a single CLI command.

Desktop profile:

dsh plugin --profile desktop add github:kvashninsasha-gif/dsh-locale-ru

CLI / Web profile:

dsh plugin --profile web add github:kvashninsasha-gif/dsh-locale-ru
dsh web

Once installed, open Settings → General → Language and select Русский. If no language has been manually selected yet, DSH matches the first supported language based on navigator.languages; if the browser system language is set to Russian, the interface may automatically switch to Russian.

2. Manual Mounting (Without Package Manager)

Copy the plugin directory to your profile and add the following to $DSH_HOME/profiles/<profile>/cordis.patch.yml:

- insert:
    - id: locale-ru
      name: './plugins/dsh-locale-ru/lib/index.js'

This method does not modify the profile’s package.json or lockfile. Do not use this simultaneously with bundle installation, as it will cause package name resolution conflicts.

Uninstallation

dsh plugin --profile desktop remove dsh-locale-ru

For manual installations: Delete the plugins/dsh-locale-ru directory and the locale-ru entry in cordis.patch.yml; the language setting will revert to English/Chinese.

Typical Usage

For most users, simply install and select the language; there are no additional configuration options. When maintaining translations or following DSH upgrades, the repository provides scripts for Node.js ≥ 22 (note that npm run check does not depend on npm install):

npm run build   # source/*.json → lib/client.js (fails if translation is incomplete)
npm run check   # integrity, ICU placeholders, bundle expiration, runtime registration/unloading

After a DSH application upgrade, strings may change. The README outlines the workflow to re-extract dictionaries from the @deepseek-ai client packages within the macOS app.asar, merge them into source/en.json, complete source/ru.json, and then run npm run build && npm run check. The current dictionary baseline in the repository is 0.2.0-rc.2; for new keys added in other DSH versions, the fallback will display English until they are re-extracted and translated.

Use Cases and Limitations

Suitable for: Operators needing to use Russian in the DSH Web/Desktop interface, and teams wishing to switch languages alongside the built-in Chinese/English options.

Note:

  1. Loading screens (e.g., “HARNESS”, “Loading plugins…”) come from the application shell (dsh-web-frontend) and are outside the locale dictionary system, so they cannot be overridden by the language pack.
  2. Host-side LocalizedText (e.g., descriptions for some slash commands like /model) are parsed via maps within individual packages. This is a known limitation documented in dsh-client-locale, and this plugin does not modify this part.
  3. Versioning: Dictionaries are extracted for DSH 0.2.0-rc.2. peerDependencies are not declared to avoid blocking installation via compatibility checks, but actual interface completeness still depends on whether the DSH version matches the extraction source.

Repository Structure (for Secondary Development)

Path Description
lib/client.js Browser-side: language registration and full dictionary (generated artifact)
lib/index.js Host-side: entry point for loader reference
cordis.patch.yml Bundle patch, mounted to selected profile
source/en.json / `source/ru.json`` English (and Chinese) sources and Russian translations
tools/ Scripts for building, validating, and extracting dictionaries from the app

Conclusion

dsh-locale-ru extends the DSH UI to Russian using the standard ctx.locale API, covering 2,615 strings across 58 namespaces. After installation, simply select Русский in the settings; untranslated content falls back to English, and removing the plugin completely restores the original state. Catalog and source code:

  • Catalog Page: https://www.skillhub.cn/plugins/kvashninsasha-gif/dsh-locale-ru
  • GitHub: https://github.com/kvashninsasha-gif/dsh-locale-ru
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye