dsh-persian-rtl: Provides Persian Language and RTL Layout for DeepSeek Harness Web

Introduction

DeepSeek Harness (DSH) Web defaults to an English interface. If you need to operate settings, sidebars, workspaces, and dialogs in Persian (فارسی) within the browser and want the interface to adopt Right-to-Left (RTL) typography when Persian is selected, simply changing the browser language is often insufficient: untranslated namespaces still fall back to English, and code and terminal areas require isolation from the main text direction. The community plugin dsh-persian-rtl (maintained by MiRHaDi) registers language packs and styles via DSH’s public locale client API, extending the language selector and document direction under the web configuration without introducing runtime npm dependencies.

What is this

dsh-persian-rtl is an independent community plugin (not an official DeepSeek product), categorized as a client-side extension for DeepSeek Harness Web. It adds فارسی to the language selector, translates 240 strings across 6 namespaces, and enables RTL layout when Persian is selected; code blocks, keyboard shortcut descriptions, terminals, and editor containers remain LTR. The plugin uses @deepseek-ai/dsh-client-locale injection. The current release version is 0.1.0, licensed under MIT.

Core Features

Translation Coverage

Namespace String Count Coverage under fixed upstream revision
common 37 Complete
settings.locale 1 Complete
sidebar 5 Complete
settings 29 Complete
workspace 64 Complete
chat 104 Complete

Other namespaces still use the DSH English fallback. The README explicitly states: not a full application translation—onboarding, provider configuration, Composer controls, and some settings panels remain in English. Locale-based date conversion, Persian numerals, speech, and terminal UI localization are not implemented; dates still follow the upstream calendar. Plural count templates retain placeholders and use natural Persian counting words.

RTL and Mixed Script

RTL is implemented via document direction (dir) and scoped CSS, without string reversal or inserting directional control characters. Containers such as pre, code, kbd, samp, xterm, Monaco, and CodeMirror use LTR isolation; paragraphs and textareas use unicode-bidi: plaintext to handle mixed Persian and Latin script. Whether third-party rendering components fully support RTL requires case-by-case feedback.

Language Preference

Select فارسی in Settings → General → Language. If no explicit language preference is set, it also follows the Persian browser locale (e.g., fa-IR); explicit preferences take precedence. Selecting a language does not require an API Key; model requests are still configured via standard DSH provider paradigms.

Installation and Activation

The maintainer has tested this on DeepSeek Harness 0.1.6-alpha.2, Node 24.15.0, and Windows with Google Chrome 153.0.8010.52 installed. The API is in the alpha stage; earlier versions are not supported, and future compatibility is not guaranteed. The plugin does not install or upgrade DSH; a corresponding DSH installation is required.

  1. Download dsh-persian-rtl-0.1.0.tgz from GitHub Releases.
  2. Ensure a web profile has been created, then execute in the directory containing the tarball:
dsh plugin --profile web add ./dsh-persian-rtl-0.1.0.tgz
dsh --profile web --no-open
  1. Open the local address printed by DSH and navigate to Settings → General → Language → فارسی.

The release package includes the pre-built client, so no build scripts need to be run during installation. For isolated testing, you can point DSH_HOME to an empty directory before starting DSH; see the upstream profile and plugin guide for profile and plugin mechanisms.

To uninstall and refresh the page:

dsh plugin --profile web remove dsh-persian-rtl

Uninstallation removes the dictionary, selector entries, listeners, and stylesheets; leaving Persian restores the previous document direction (unless modified by other logic). DSH handles the persistence of language and preferences.

Typical Usage

After installing and starting the Web profile, switch the interface language to فارسی in the settings. You will see Persian text within the six covered namespaces, with the overall layout in RTL, while code and terminal areas remain LTR.

The maintainer also installed via the real dsh plugin command and performed smoke tests in the actual Web application using headless system Chrome: fa → en → fa language switching, lang/dir attributes, and zero page errors. Optional on the browser side: install Playwright 1.62.1 separately, set DSH_TEST_URL to the local authenticated URL of the isolated running instance, and execute node test/browser.cjs (only opens headless Chrome; do not leak this URL).

Use Cases and Notes

Who it is for: Developers or users who need to read common UI elements in Persian on DSH Web and rely on RTL mixed-script rules; those who accept that onboarding, providers, and some panels remain in English.

Permissions and Security: The plugin runs with the permissions of the current dsh process. Please review the repository source code and the MIT license before installing. The community directory skillhub.cn plugin page is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Development and Verification (Maintainer side, not required for installation):

npm ci
npm run build
npm run test

Includes six automated tests (dictionary keys and placeholders, fixed upstream fixtures, LocaleRuntime, fa-IR negotiation, English fallback, repeated language switching, uninstall/reload and direction restoration, etc.). The English fixture corresponds to DeepSeek Harness commit ddefc45fbc7f8e46dd73185e68295696d1297887.

Conclusion

dsh-persian-rtl adds Persian selection and RTL to DSH Web while confining technical areas to LTR, making it suitable for scenarios requiring a فارسی interface while preserving code/terminal readability. For more information and downloads:

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

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

Xiaoye