mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Replace optional chains on always-present globals with the repo's typeof guards (store.ts precedent), drop the non-null assertion by failing loud on an impossible registry miss, and fix two arrow-parens slips; cover the no-localStorage boot path in both service suites.
@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.