op7418/pilot-harness--packages-client-locale ↗★ 276
@deepseek-ai/dsh-client-locale
语言区域插件,提供中英文偏好、浏览器回退与本地化字典。 适合需要中英双语界面与语言偏好持久化的用户,依赖主机设置服务。
同名套件的其他儲存庫
- deepseek-ai/deepseek-harness--packages-client-locale
- whitelonng/dshcode--packages-client-locale
- fufankeji/deepseek-harness-studio--packages-client-locale
- See-Sol-Lab/DeepSeekGUI--packages-client-locale
- peiyuwang54/deepseek-harness-cli--packages-client-locale
- SuperJJ007/papermachine--packages-client-locale
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗@deepseek-ai/dsh-client-locale
English | 中文
Locale plugin: LocaleRuntime — the zh/en preference stored as locale.preference in $DSH_HOME/settings.yaml; when that explicit Host value is absent, a fresh browser starts provisionally in the language navigator asks for (primary-subtag matching, with zh when it asks for no language this app ships). The Host read runs after plugin activation so an unavailable settings service cannot block the page; its result replaces the provisional browser value live. Remote browsers retain only a process-local selection because the settings API is loopback-only. locale/change fires on switches. The service also owns the ns×locale dictionary registry (typed register(ns, {zh, en}) checked against LocaleNamespaceMap, bind(ns)→TranslateNS; lookup chain ns → common → zh → key), implements the slot system's LocaleFace, and installs itself through ctx.slots.installLocale, backing the framework-injected t standard seat (Translate/TranslateNS are ui-slots types; import them from there — this package only re-exports for dictionary owners' convenience). The Host-backed preferences decision owns the persistence boundary.
Model Experience
None, as the locale registry serves browser UI copy; nothing here reaches a model request.
KV Cache effect
None; this package neither assembles nor sends a provider request.
Known Limitations and Deferred Work
- Some surfaces keep inline copy — Settings rows, the sidebar, question composer, and model select use locale seats; other packages still own static text directly.
- Registry-held text reads its translation once — copy captured at registration time outside the slot render path (e.g. the
/modelcommand description in the command registry) keeps the language it was registered under until re-registration; slot-rendered copy follows switches live.