返回目录
模型与 MCP 插件

dsh-turkish-locale

mkfeyman/dsh-turkish-locale

Turkish (Türkçe) language pack for the DeepSeek Harness Web UI — 75 namespaces, 4,223 strings, MIT

Stars
1
Forks
0
Issues
0
更新
10 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:mkfeyman/dsh-turkish-locale

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-turkish-locale

Turkish (Türkçe) language pack for the DeepSeek Harness Web UI. A community plugin built on the documented client-plugin locale API — no changes to the packaged application, no rebuild.

Turkish home screen

What it does

  • Registers tr with an en fallback through ctx.locale.addLanguage and ctx.locale.register.
  • Translates 75 namespaces / 4,223 strings — 100% of the English UI copy shipped in DSH 0.2.2-rc.2 (commit a6b1b85; v1.1.1). Placeholders, Markdown, separator strings and punctuation are preserved and validated against source.
  • The language appears in Settings → General → Language → Türkçe; the choice persists as locale.preference in cordis.patch.yml, <html lang> follows the active locale, and English/Turkish switching works live in both directions.

Settings with Dil: Türkçe

Install

The package is both a client plugin and a DSH bundle (dsh.bundle.patch), so it can be installed manually or from a plugin market index.

From the DSH plugin market (Discover)

Market index:

https://raw.githubusercontent.com/mkfeyman/dsh-turkish-locale/main/market-index.json

Add that URL as an index source in Plugins → More → Discover (Settings → Plugins also lists the configured sources), then install "Türkçe dil paketi". The installer pins git+https://github.com/mkfeyman/dsh-turkish-locale#<commit>, so Git must be available to pnpm on the machine.

Manual install

  1. Copy this package into a DSH profile's node_modules:

    Copy-Item -Recurse dsh-turkish-locale "$HOME\\.dsh\\profiles\\desktop\\node_modules\\"
  2. Add rows to the profile's cordis.patch.yml:

    - insert:
        - id: tr-locale
          name: dsh-turkish-locale
    - id: locale
      config:
        preference: tr
  3. With HMR enabled the pack activates in the running app; otherwise restart the app (or reload the Web GUI). Choose Ayarlar → Genel → Dil to switch.

Compatibility

  • Verified working on DSH 0.2.2-rc.2 (commit a6b1b85): the pack loads from the boot graph, the language selector lists the built-in languages plus Türkçe, switching round-trips, and locale.preference: tr persists. Runtime contracts (addLanguage, register(ns, locale, dict), resolveText, snapshot) are unchanged from 0.2.1-rc.3.
  • 0.2.2-rc.2 profile note: profile node_modules is now pnpm-managed, so a hand-copied directory is no longer mounted by the Loader. Install through Plugins (install_bundle on this directory), or from the market index; a remove_bundle + install_bundle cycle re-links an older manual install.
  • Coverage (v1.1.1): re-extracted from 0.2.2-rc.2 and translated to 75 namespaces / 4,223 strings — 100 % of the shipped English UI copy, including the 430 strings added by rc.2 (cuaPermissions 66, forgePanel +174, settings.models +37, sidebarFiles +32, …); 45 removed strings were pruned and 2 changed placeholders fixed. Release notes: docs/release-notes-v1.1.1.md.
  • Earlier: v1.1.0 covers 0.2.2-rc.1 (73/3,838, docs/release-notes-v1.1.0.md); the 0.2.2-rc.1 upgrade analysis stays at docs/upgrade-analysis-0.2.2-rc1.md.

Documentation (English)

All public docs are published in English; Turkish originals are kept alongside with a .tr.md suffix.

Document Purpose
docs/release-notes-v1.1.1.md 0.2.2-rc.2 coverage release notes (Turkish)
docs/release-notes-v1.1.0.md 0.2.2-rc.1 coverage release notes (Turkish)
docs/upgrade-analysis-0.2.2-rc2.md rc.2 analysis: pnpm-managed profiles, delta, compatibility
docs/upgrade-analysis-0.2.2-rc1.md rc.1 analysis: API diff, delta, debugging (Turkish)
patches/README.md Ordered-locale-preference patch drafts (#11699)
fixtures/README.md Partial-pack fixture and version coverage

Repository layout

Path Purpose
lib/client.js Browser bundle registering the language and dictionaries
lib/index.js Empty host half (Loader row)
cordis.patch.yml Bundle patch: adds the tr-locale row and defaults the locale to tr
locales/tr.json Full namespace → key → Turkish dictionary data
market-index.json Plugin market index listing this bundle (format 1)
fixtures/ Deterministic 59.4 % Turkish subset + expected ordered-lookup samples
patches/ Draft patch for ordered locale preference (#11699)
locale/ Package-localized title/description
docs/ Screenshots and market icon

Ordered locale preference (Discussion #11699)

The community proposal to replace the single UI locale with an ordered preference list (ru → en → zh) is supported by this pack. We published:

  • Patch draft for packages/client/locale, rebased to dsh-v0.2.2-rc.1 (tag commit 66491b05…) and CI-validated: patches/0003-ordered-locale-preference-0.2.2-rc1.patch (17 files: the locale package — legacy string preferences read as one-element lists, snapshot.active stays the first entry, lookup expands each preferred language's fallback chain and ends at English, reorderable settings row — plus 5 sibling test fixtures whose LocaleSnapshot literals gain preference). Applied to a checked-out rc.1 tree: vitest 79/79, sanctioned typecheck gate 5/5, patch self-check reproduces the tree exactly — see patches/validation-report-0.2.2-rc1.json. Older variants: 0002 (alpha.2) and 0001 (rc.3).
  • Fixture to exercise it: fixtures/ — a 59.4 % Turkish subset (1728 / 2910 keys) plus expected-behavior.json samples for ["tr","en"], ["en","tr"], ["tr","zh"] and the legacy single selection; version-coverage.json records why the 0.2.2 delta (9 namespaces / 853 strings) falls through to English in fixture tests.
  • Layer-2 audit: tools/audit_locale_gaps.py measures the case ordering cannot fix — namespaces that register only zh and CJK keys that would leak as raw text — from a local dictionary dump ({namespace: {locale: {key: value}}}). Sample: fixtures/audit-sample.json. Classification confirmed with @ragnoryok1: typed (zh+en) dictionaries are fixed by ordering; per-locale zh-only dictionaries are not, and a tarball listing cannot distinguish them, so the rule belongs at registration time.
  • Live demo: the fixture was installed as a temporary tr-partial language pack and selected in Settings → General → Language, rendering a mixed Turkish/English UI (screenshot below). The demo pack was removed afterwards.

Partial Turkish demo

The Turkish pack is unaffected by the change: tr → en behaves exactly like the ordered list ["tr","en"].

Provenance

The dictionaries were extracted from the English source of the client packages installed with DSH 0.2.1-rc.3 and translated namespace by namespace; every translated value was checked against its source placeholder set before the bundle was generated. The proposal was shared with the DeepSeek Harness team in Discussions #11015.

License

MIT — see LICENSE.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。