docs: document defaults.lang (pin default UI language)

This commit is contained in:
reverse 2026-06-20 16:29:06 +00:00
parent bcd2b8b1ff
commit c728d32977
No known key found for this signature in database

View file

@ -28,6 +28,7 @@ Merge rules: objects merge key-by-key; **arrays and scalars replace** wholesale.
| `report.target` | string | Channel that user reports are sent to. |
| `defaults.theme` | string | `light` · `dark` · `yomirc` · `yomirc-dark`. |
| `defaults.compact` / `sound` / `hideJoinQuit` / `clock24` | bool | Preset new-user prefs. |
| `defaults.lang` | string | Pin a default UI language (e.g. `en`, `fr`, `de`). Overrides browser detection for users who haven't picked one. Omit to auto-detect. |
| `features.push` / `imageUpload` / `register` | bool | Turn whole features on/off. |
> `defaults.*` only seed a user's preferences the **first** time — once someone changes a setting,