rukazax/deepseek_harness--packages-dsh-locale-ru ↗★ 0

dsh-locale-ru

Russian language pack for the DeepSeek Harness web interface: adds the «Русский» entry under Settings → General → Language and registers Russian dictionaries for all client packages. Fallback chain ru → en keeps untranslated keys in English.

패키지
dsh-locale-ru
호환성
미검증
버전
1.0.0
라이선스
MIT
최근 업데이트
2026. 10. 29.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:rukazax/deepseek_harness#38236d69c4c5474441cea7dcfa9a78c3a8688e23&path:packages/dsh-locale-ru'

dsh-locale-ru — русский язык для веб-интерфейса DSH

dsh-locale-ru — схема работы

RU · English

RU

Клиентский плагин DeepSeek Harness: добавляет в «Настройки → Общие → Язык» пункт «Русский» и регистрирует русские словари для всех клиентских пакетов интерфейса.

  • 1620+ строк перевода в 30 пространствах имён — все английские словари, извлечённые из установленного DSH (app.asar).
  • Непереведённые ключи (например, из более новой версии DSH) остаются английскими: у языка объявлена цепочка отката ru → en.
  • Зависимостей нет, сборка не нужна: браузерная половина — один самодостаточный файл lib/client.js.
  • Хостовая половина (lib/index.js) намеренно пустая: у пакета должна быть строка в Loader, но никаких сервисов она не занимает и безопасна для включения/отключения из настроек.

Как это работает

flowchart LR
  UI["Веб-интерфейс DSH
Настройки → Общие → Язык"]
  CL["dsh-client-locale
ctx.locale.define(...)"]
  P["dsh-locale-ru
lib/client.js — бандл"]
  J["locales/ru.json
30 пространств имён"]
  H["lib/index.js
apply() — пустая"]
  I["tools/install.mjs
установка в профиль"]

  UI -->|выбор «Русский»| CL
  CL -->|регистрация языка и словарей| P
  P -.->|исходник переводов| J
  H -.->|строка Loader| P
  I -->|копирует пакет в профиль| H

  P -->|нет ключа| FB["Откат ru → en"]

dsh-client-modules обходит активные строки Loader, у каждой читает объявленный язык и словари. Плагин регистрирует язык ru с цепочкой отката на en, поэтому отсутствующий перевод не ломает интерфейс — строка показывается на английском.

Состав

ФайлНазначение
package.jsonМанифест: dsh.bundle.patch, dsh.client, exports["./client"]
cordis.patch.ymlСтрока Loader для монтирования плагина
lib/index.jsХостовая половина: пустой apply, без сервисов
lib/client.jsСобранный браузерный бандл: язык и все словари
locales/ru.jsonИсходник перевода: пакет → ключ → русский текст
tools/install.mjsУстановка/удаление в профиле DSH одной командой

Установка

# 1) сухой прогон: показывает, что будет скопировано и какая строка добавится
node tools/install.mjs --dry-run

# 2) установка в профиль desktop (по умолчанию)
node tools/install.mjs

# 3) удаление
node tools/install.mjs --remove

Скрипт копирует пакет в ~/.dsh/profiles//plugins/dsh-locale-ru и добавляет одну строку Loader в cordis.patch.yml профиля, сохраняя резервную копию. Без pnpm, без сети, без пересборки.

Альтернатива — вручную: скопировать каталог пакета в plugins/ профиля и добавить

- insert:
    - id: dsh-locale-ru
      name: dsh-locale-ru

Проверка результата

  1. Перезапустить DSH (или обновить окно) и открыть «Настройки → Общие → Язык».
  2. Убедиться, что появился пункт «Русский»; выбрать его.
  3. Интерфейс переключается на русский; непереведённые строки остаются английскими.

Ограничения

  • Перевод соответствует словарям версии DSH, из которой он извлечён: в новых версиях часть ключей может отсутствовать и отображаться на английском — это ожидаемое поведение отката.
  • Плагин не переводит содержимое, которое генерирует модель, и имена инструментов.

English

DeepSeek Harness client plugin: adds a «Русский» (Russian) entry under Settings → General → Language and registers Russian dictionaries for every client package of the UI.

  • 1620+ translated lines across 30 namespaces — every English dictionary extracted from the installed DSH bundle (app.asar).
  • Missing keys (for example from a newer DSH build) stay English: the language declares a ru → en fallback chain.
  • No dependencies and no build step: the browser half is a single self-contained lib/client.js.
  • The host half (lib/index.js) is intentionally empty: the package needs a Loader row, but claims no services, so it can be enabled and disabled from settings safely.

How it works

flowchart LR
  UI["DSH web UI
Settings → General → Language"]
  CL["dsh-client-locale
ctx.locale.define(...)"]
  P["dsh-locale-ru
lib/client.js bundle"]
  J["locales/ru.json
30 namespaces"]
  H["lib/index.js
empty apply()"]
  I["tools/install.mjs
installs into a profile"]

  UI -->|picks Russian| CL
  CL -->|registers language and dictionaries| P
  P -.->|translation source| J
  H -.->|Loader row| P
  I -->|copies the package| H

  P -->|missing key| FB["fallback ru → en"]

dsh-client-modules walks the active Loader rows and reads the declared language and dictionaries. The plugin declares language ru with an en fallback, so a missing translation never breaks the interface — that string is rendered in English.

Contents

FilePurpose
package.jsonManifest: dsh.bundle.patch, dsh.client, exports["./client"]
cordis.patch.ymlLoader row that mounts the plugin
lib/index.jsHost half: empty apply, no services
lib/client.jsBuilt browser bundle: language plus all dictionaries
locales/ru.jsonTranslation source: package → key → Russian text
tools/install.mjsOne-command install/remove in a DSH profile

Install

node tools/install.mjs --dry-run   # show what would change
node tools/install.mjs             # install into the desktop profile
node tools/install.mjs --remove    # uninstall

The script copies the package into ~/.dsh/profiles/ /plugins/dsh-locale-ru, adds one Loader row to the profile cordis.patch.yml and keeps a backup. No pnpm, no network, no rebuild.

Manual alternative: copy the package directory into the profile plugins/ folder and add

- insert:
    - id: dsh-locale-ru
      name: dsh-locale-ru

Verify

  1. Restart DSH (or reload the window) and open Settings → General → Language.
  2. The «Русский» entry is present; select it.
  3. The interface switches to Russian; untranslated strings stay English.

Limitations

  • The translation matches the dictionaries of the DSH build it was extracted from: newer builds may add keys that are absent here and therefore render in English — that is the expected fallback behaviour.
  • The plugin does not translate model output or tool names.

License

MIT — see LICENSE.