Files
deepseek-harness/packages/client/locale
imccyu a04a223bab refactor(gui): copy-free settings shell; ui-settings-general owns ownerless copy
The shell is now a pure composition face: no dictionaries, no locale
dependency, and three new chrome content seats (settings.trigger /
settings.header / settings.close) whose slot content also carries the
accessible names (trigger text, dialog aria-labelledby, visually hidden
close label). ui-settings-general returns as the owner of copy that
belongs to no single feature: chrome content, the General section with
its item slot, and the settings dictionaries. Slot types split homes —
trigger/header/close/section live in the shell contract; the
settings.general.item entry moves to the locale package (the common
dependency of every item registrant), with ui-theme consuming it
through a re-export seam; the verbatim duplicate merges are gone and
the dependency graph is a clean DAG.
2026-07-26 12:40:17 +08:00
..

@deepseek-ai/dsh-client-locale

Locale plugin: LocaleService — the browser locale preference (zh/en, persisted under dsh.locale, getter/setter with locale/change snapshots) plus the ns×locale dictionary registry (bind(ns)→t with a stable function identity; lookup chain active → zh → key).

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

  • Only the Settings surface is translated — other pages keep inline copy; repo-wide extraction into dictionaries is deferred.
  • Locale switching re-renders subscribed consumers only — sections not wired to locale/change keep their rendered text until remount.