mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
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.
@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/changekeep their rendered text until remount.