HERMES-GIELIE/static
Nathan Esquenazi 1ac1e74512 fix: apply locale to DOM immediately on save — no reload needed
Add applyLocaleToDOM() which walks [data-i18n] elements and re-stamps
their textContent from t(). Called after setLocale() in saveSettings()
so the settings panel labels, checkboxes, and save button update live.
Also called on boot after /api/settings resolves so Chinese persists
without flicker on reload.

- static/i18n.js: add applyLocaleToDOM() function
- static/index.html: add data-i18n attributes to all settings panel
  static text nodes (labels, checkbox spans, save button)
- static/panels.js: call applyLocaleToDOM() + syncTopbar() after save
- static/boot.js: call applyLocaleToDOM() alongside setLocale() on boot
2026-04-08 18:58:20 -07:00
..
boot.js feat: pluggable i18n with English/Chinese language switcher in Settings 2026-04-08 18:57:50 -07:00
commands.js feat: pluggable i18n with English/Chinese language switcher in Settings 2026-04-08 18:57:50 -07:00
i18n.js fix: apply locale to DOM immediately on save — no reload needed 2026-04-08 18:58:20 -07:00
index.html fix: apply locale to DOM immediately on save — no reload needed 2026-04-08 18:58:20 -07:00
messages.js Merge pull request #180 from nesquena/feat/notification-sound-browser 2026-04-08 18:56:11 -07:00
panels.js fix: apply locale to DOM immediately on save — no reload needed 2026-04-08 18:58:20 -07:00
sessions.js feat: make bot name configurable 2026-04-06 05:14:31 +00:00
style.css fix: add missing --input-bg/--hover-bg vars, update THEMES.md 2026-04-07 18:11:01 +00:00
ui.js feat: pluggable i18n with English/Chinese language switcher in Settings 2026-04-08 18:57:50 -07:00
workspace.js feat: pluggable i18n with English/Chinese language switcher in Settings 2026-04-08 18:57:50 -07:00