dsh-locale-ru: Russian Localization for DeepSeek Harness Web GUI

Preface

The DeepSeek Harness (DSH) Web client manages interface text via the @deepseek-ai/dsh-client-locale service: dictionaries are registered by namespace, and users switch languages in Settings → General → Language. The default shipped languages are primarily English; if a team or user requires a Russian interface, they must either wait for upstream to add the ru key or maintain a language pack plugin themselves.

Below is an introduction to the community-maintained dsh-locale-ru (vowa-antilamer/dsh-locale-ru): it registers Русский for the DSH Web GUI and covers a large number of namespaces related to conversations, sidebars, settings, goals, and plugins. This package is not published to npm (the name dsh-locale-ru on npm belongs to an unrelated project) and must be installed from GitHub.

What is this

dsh-locale-ru is a client-side language pack plugin for DSH, maintained by vowa-antilamer. It registers the ru dictionary with the locale service on the browser side and declares an injection into @deepseek-ai/dsh-client-locale (with dsh.client.platform as web and immediately: true in package.json). The host side is an empty implementation with no runtime dependencies, so installing it does not alter the profile’s dependency graph.

The README states that the current scale is approximately 61 message namespaces and 3844 strings, covering chat and Composer, conversation and trajectory views, various sidebars, all settings pages, plugins and Cordis, goals/plans/jobs, subagents, Q&A and approval flows, as well as third-party plugin namespaces such as dsh-market, better-sidebar, dsh-pet, dsh-mcp, and dsh-git-graph. The license is MIT (see the repository README and package.json).

Core Features

Language Registration and Fallback

The plugin registers the locale code ru and configures English fallback: if a key lacks a Russian translation, it first resolves to en, then falls back to the shared common namespace, preventing UI errors or blanks caused by incomplete dictionaries.

First Load and Language Selection

Upon installation, the first page load will attempt to select Russian; a localStorage flag then hands the choice over to the user. Later changes back to English in the settings will not be overridden by the plugin again.

Third-Party Plugin Dictionaries

Russian entries for third-party plugins are placed in src/locales/plugins/, with one JSON file per namespace. These namespaces are registered one task after page startup to avoid competing with the plugin’s own ru dictionary for the same (namespace, locale) (the locale service rejects duplicate registrations). If a plugin already provides Russian via ctx.locale.register(...), the plugin takes precedence; the language pack only supplements plugins that “do not come with Russian.”

Build and Quality Gates

The repository stores English source text and translations side-by-side in the form { "<key>": { "en": "…", "ru": "…" } }; scripts/build.mjs generates the committed lib/client.js. Maintainers can use scripts/extract-dictionaries.mjs to compare installed DSH/profile and detect key drift; CI and npm run verify (check + test) ensure the artifact is not stale and that keys and placeholders match.

Installation and Enablement

Before installing, review the GitHub repository source code and the MIT license. The plugin runs in the browser environment of the web profile, with permissions consistent with the current DSH process and installed plugins; install only from trusted sources.

Installing to a DSH profile

The official README provides the following installation method using a GitHub spec:

dsh plugin --profile web add github:vowa-antilamer/dsh-locale-ru

You can also enter the same spec in Settings → Plugins → Install. The plugin manager will add the package and write the bundle line; Русский should appear immediately in Settings → General → Language.

For local development checkouts, simply point the path to the directory:

dsh plugin --profile web add /path/to/dsh-locale-ru

And add "dsh-locale-ru" to dsh.profile.bundles in the profile’s package.json (the UI installation flow usually handles this automatically).

Switching the Interface Language

Select Русский in Settings → General → Language. The option is written to the host settings document and persists after restart. Selecting English switches back to English.

Typical Usage and Maintainer Workflow

Regular Users

After installation, open the Web GUI and select Русский in the settings as described in the previous section. No additional configuration files are needed.

Supplementing Translations for New Third-Party Plugins (Maintainers)

If you fork or participate in maintaining the language pack, the README suggests the following workflow.

  1. First, install the target plugin into the profile, then compare the live installation with the repository dictionary:
node scripts/extract-dictionaries.mjs <dsh>/node_modules/@deepseek-ai "$DSH_PROFILE_DIR/node_modules" --drafts
  1. Fill in the "ru" value in .plugin-drafts/<namespace>.json, move the file to src/locales/plugins/, then run:
npm run verify

The tool will list all namespaces, marking plugin-specific ones with [plugin]; --drafts will write drafts for entries that do not yet have Russian (gitignored). Omitting the profile parameter diffs only the core bundle; <dsh> is the DSH installation directory (often ~/.npm/_npx/<hash> for npx installs).

Syncing Dictionaries After a DSH Update

node scripts/extract-dictionaries.mjs /path/to/dsh/node_modules/@deepseek-ai "$DSH_PROFILE_DIR/node_modules"

In the output, MISSING / REMOVED indicate key drift, NEW represents untranslated namespaces, UNUSED refers to dictionaries no longer registered by any bundle, and OWN-RU means the plugin has its own Russian, so the corresponding file in the language pack should be deleted. Run npm run verify after supplementing translations or removing keys.

Common development commands (README Development section):

npm run build     # Regenerate lib/client.js
npm run check     # Check if the artifact is consistent with the source (CI gate)
npm test          # Module shape, registration, and key/placeholder parity
npm run verify    # check + test

Coverage (Summary)

The README summarizes the main namespace groups in a table, including: conversation, chat, various sidebar*, settings.*, goal / plan / job, question / approval, as well as dsh-market, betterSidebar, pet, mcp, and gitGraph. For the complete list, see What is translated in the repository README.

Scenarios and Limitations

Who it is for: Developers or teams needing to use Russian in the DSH Web interface; maintainers who want to supplement translations for third-party plugins based on this community language pack (the repository provides an extractor and tests).

Things to note:

  • Text that does not pass through the locale service will not be translated, such as host-side plain text responses (e.g., dsh web authentication required), or parts rendered by plugins using their own dictionaries based on document.documentElement.lang (the README cites the floating sprite and HUD of @linxin666/dsh-pet as an example: settings pages can go through locale, but the game HUD may remain in the plugin’s built-in language).
  • Plugins not included in the language pack (such as dsh-hud mentioned in the README) will still display in English; you can use extract-dictionaries.mjs to view the gaps.
  • The locale service has no pluralization rules; strings with quantities use forms like number-ind (README Limitations section; the truncated body text also points to this limitation).

The plugin is categorized as Client-side (web profile only); this is consistent with the community inclusion on the SkillHub Plugin Directory, which is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-locale-ru makes the Russian interface for the DSH Web GUI an installable, verifiable language pack: with English fallback, delayed registration of third-party namespaces, and no Host dependencies. If you need a Russian working environment, install it via the GitHub spec and select Русский in the settings.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye