mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
web: move the language and theme selectors to the System section
The header carried the save button, the language selector and the theme selector on every section, although the latter two are set once. They now live in a Display card in the System section; the header keeps the title, the unsaved-changes badge and Save to flash.
This commit is contained in:
1 parent
c1caf6f569
commit
80552816b9
3 files changed
+22
-18
No files matched your search
@@ -11,7 +11,7 @@ All translation logic lives at the top of `html/app.js`:
|
||||
- A `LANG` object with one sub-object per language (`en`, `ja`, `zh`)
|
||||
- Language auto-detection (browser language, overridden by the
|
||||
`rtl_lang` key in `localStorage`, which the language selector in the
|
||||
page header writes)
|
||||
System section writes)
|
||||
- `t(key, vars)` looks up a translated string; `{name}` placeholders in
|
||||
the string are replaced from `vars`, e.g. `t("v_del_q", {n: vid})`
|
||||
- `i18nApply()` applies the dictionary to the static markup once at load
|
||||
|
||||
Reference in new issue
Block a user