已核实档案CONF. 80/100官方

Client Locale

dsh-client-locale

Locale plugin: LocaleRuntime — the `zh`/`en` preference stored as `locale.preference` in `$DSH_HOME/settings.…

AI 能力插件clientclientclient-locale
类型
插件
client
版本
0.1.1-rc.2
能力包版本
分发
open_source
安装分发方式
资料置信度
80/100
达到公开展示门槛
01

先看结论

基于现有公开资料生成,最后决策仍应核对原始来源。

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 `en` 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, and the plugin points `<html lang>` at the active locale (`zh-CN`/`en`) on activation and on every switch. The service also owns the ns×locale dictionary registry (typed `register(ns, {zh, en})` checked against `LocaleNamespaceMap`, `bind(ns)`→`TranslateNS<ns>`; lookup chain ns → common → en → 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](../../../.agents/notes/implemented/bug-fix/2026-08-06-host-backed-web-preferences.md) owns the persistence boundary.

02

能力

它能让 Agent / 使用者做什么。

  • 适用 Agent:DeepSeek Harness
  • 适配模型:DeepSeek
03

安装与获取

可复现安装方式。

@deepseek-ai/dsh-client-locale

04

来源与核实

保留来源、时间与置信度,供回溯。

来源
DeepSeek Harness 官方 npm @deepseek-ai/dsh(源码仓库 github.com/deepseek-ai/deepseek-harness)
核实日期
2026-09-04
许可证
MIT
05

实效证据

来源可信不等于任务有效。

暂无通过审核、可复现的同任务 A/B 运行证据;本档案仅证明来源可信,不代表实测有效。

Client Locale - 档案 - 效率派 · 效率派