dsh-soul-ru-lang
Russian UI language pack for the dsh-soul
personalization plugin (DeepSeek Harness). It registers a ru dictionary for the plugin's
soul locale namespace — 401 keys, the full settings UI, session tab, workspace pages,
overview panel and toasts.
Why a separate package
dsh-soul ships zh and en dictionaries. This pack keeps Russian UI text out of the
vendor diff: nothing in dsh-soul is patched or recompiled — the plugin's own locale
service is extended at runtime through the Harness client locale service
(register('soul', 'ru', …)).
Consequences worth knowing:
- The pack is a pure client overlay. If
dsh-soulever ships its ownsoulru dictionary, this package becomes a no-op: the vendor dictionary wins for keys both provide. - Nothing here touches the response language or the prompt. Russian answers are a feature
of
dsh-soulitself (language: 'ru'); this pack only localizes the UI.
Requirements
- DeepSeek Harness with a Russian UI locale available (
0.2.2-rc.1or newer; the client locale plugin registersrualongsideja/es/fr/de/pt). dsh-soul0.13.0 or newer, enabled in the same profile.
Install
From npm (recommended):
dsh plugin add dsh-soul-ru-lang
From GitHub (same package, tracks main):
dsh plugin add github:zznobzz/dsh-soul-ru-lang
From a local checkout:
dsh plugin add /path/to/dsh-soul-ru-lang
Restart the Harness afterwards (profile changes apply at startup unless HMR is running) and
reload the page. The package declares dsh.bundle.patch, so the bundle manager inserts its
loader row automatically; no manual profile editing is needed.
Verify it is active
- Settings → Interface language → Русский.
- Settings → Персонализация — the whole section is Russian (group titles, buttons, hints, toasts). The section itself is labelled «Персонализация».
- Chat →
/soul— help,show,list,usemessages are Russian.
If the section stays English, the locale is not ru or the row is missing:
dsh --profile <profile> --dump-config | grep soul-ru-lang
Updating
The dictionary mirrors the vendor en dictionary key by key. When dsh-soul changes UI
text, this pack is updated to match — ping the maintainer on such upstream changes.
Maintenance scripts (run from the repository root):
node scripts/check-keys.mjs [path/to/dsh-soul/client/index.mjs] # key parity en ↔ ru
node scripts/embed-dict.mjs # rebuild the embedded dictionary
ru.json is the source of truth; client.js carries an embedded copy because the client
bundle is loaded as a plain script (no JSON require at runtime).
Publishing (maintainers)
npm releases are produced by GitHub Actions; no manual npm publish is needed.
Version 0.1.0 is published: https://www.npmjs.com/package/dsh-soul-ru-lang (staged publish approved).
Add the token once: repository Settings → Secrets and variables → Actions → New repository secret, name
NPM_TOKEN, value an npm automation (or granular) token that may publishdsh-soul-ru-langwithout a 2FA prompt.Bump
versioninpackage.json, commit, then push a matching tag:git tag v0.1.0 git push origin v0.1.0.github/workflows/publish.ymlverifies that the tag matchespackage.json, prints the tarball contents (npm pack --dry-run) and runsnpm publish --provenance --access publicwithNODE_AUTH_TOKENfrom theNPM_TOKENsecret.
Provenance attestation requires the repository to stay public and the workflow to keep
id-token: write.
Two failure modes are worth knowing:
EOTP(“This operation requires a one-time password”): theNPM_TOKENsecret holds a token that still asks for 2FA. Use an npm Automation token (Access Tokens → Generate New Token → Classic → Automation) or a granular token with 2FA bypass fordsh-soul-ru-lang, then re-run the workflow (Actions → Publish to npm → Run workflow) — no new tag is needed.Publish “succeeds” but the registry shows only
0.0.0-stagewith the description “Temporary package placeholder for staged publishing”: npm now stages publishes made with 2FA-bypass tokens. Approve it once with a maintainer account (2FA prompt):npm stage approve dsh-soul-ru-lang@0.1.0or open the package's Publish requests page on npmjs.com and approve there. To avoid the staged flow entirely, configure a Trusted Publisher for this package (npmjs.com → package → Settings → Trusted Publisher → GitHub Actions, repository
zznobzz/dsh-soul-ru-lang, workflowpublish.yml); then the workflow can publish over OIDC withoutNPM_TOKEN.
License
MIT — see LICENSE.
No comments yet. Be the first to write one.