deepseek-harness/packages/client/ui-sidebar/tests
creatixchu e5563ae433 fix(locale): gate browser detection on window and tolerate a missing languages list
Node >= 21 exposes a global `navigator` reporting the machine's own language,
so gating detection on `navigator` let a non-browser boot of the client tree
resolve to `en` instead of the documented fallback; `window` is the browser
test. `navigator.languages` is spec-required but absent on some embedders and
older WebViews, where spreading it would throw at boot, so the walk tolerates
its absence and `navigator.language` covers that host.

The per-spec pin boilerplate collapses into one suite-level
`usePinnedBrowserLanguages('zh-CN')`, which owns the rationale in
dsh-client-test-runtime, and the English-browser e2e scenario now clears the
console warnings channel too — its page has no closing inventory spec.
2026-07-31 15:49:59 +08:00
..
__snapshots__ wip 2026-07-31 02:13:53 +08:00
apply.spec.tsx feat(client): typed locale standard seat in the slot framework 2026-07-30 01:04:56 +08:00
invariant.spec.ts feat(gui): step1 skeleton — dsc web serves built web UI over booted harness host 2026-07-22 16:24:44 +08:00
sidebar-root.spec.tsx feat(client): typed locale standard seat in the slot framework 2026-07-30 01:04:56 +08:00
sidebar-snapshot.spec.tsx fix(locale): gate browser detection on window and tolerate a missing languages list 2026-07-31 15:49:59 +08:00