2 Commits

Author SHA1 Message Date
ZQR1101
32e5c48054 fix(web): localize HistorySessionPicker placeholder titles
Treat the backend New conversation sentinel like SessionList: show a localized New chat label in the picker list, preview, and composer chips.
2026-08-30 17:57:12 +08:00
Dongyu
bf76ccfd83 fix(web): honour the saved interface language on first load (#730)
The interface language is persisted in the backend's ui settings, but only the settings route ever read it into state — so /home and every other page started in English until the user picked the language again in that browser.

The app shell now adopts the saved value once after mount, and only when the browser has recorded no choice of its own, so a local selection still wins. It goes through apiFetch (works with auth enabled), leaves the routes statically prerendered, and keeps the zh locale a lazy chunk.

Also replaces the duplicated "New conversation" sentinel check with a shared helper — the chat header showed the untranslated English sentinel the same way the sidebar did — and adds three composer aria-label keys that were referenced but missing from both catalogs.

Closes #729.
2026-08-03 21:45:40 +08:00