Commit Graph
4 Commits
Author SHA1 Message Date
hanlap0503 6150f7da28 fix(webui): align language flag in toolbar and auto-detect browser language 2026-10-15 10:06:22 +00:00
hanlap0503 86ea7dae74 feat(webui): show flag-only language selector aligned with toolbar 2026-10-15 09:46:54 +00:00
hanlap0503 6833a5d7a8 feat(webui): replace language toggle buttons with dropdown selectors 2026-10-15 09:41:14 +00:00
hanlap0503 0c016a1e36 feat(webui): add Vietnamese interface with a runtime language switch
Translate the whole management console and let the operator pick a language
without replacing the shipped copy.

- webui/i18n.js holds the dictionaries only; the Simplified Chinese text stays
  in index.html and app.js and is the fallback for every untranslated string,
  so a new locale never rewrites the original.
- Static text uses data-i18n / data-i18n-attr hooks, JavaScript text goes
  through t(); a locale switch re-renders both without a reload, and the
  choice persists in localStorage under opencode2api.ui.lang.
- The switcher is a flag button in the toolbar and on the login card that
  opens a menu of every supported locale. Flags are inline SVG, because
  Unicode flag emoji renders as plain letters on Windows.
- Ships 简体中文 (original), English and Tiếng Việt.
- README.vi.md translates the full README; all three READMEs cross-link and
  document how to add a locale.
2026-10-15 09:20:28 +00:00