Expand English documentation in config.js
This commit is contained in:
1 parent
dc41cabe4d
commit
2c0e84d267
1 file changed
+36
-7
@@ -1,12 +1,41 @@
|
||||
/* Application configuration
|
||||
*
|
||||
* debug - Show debug panel (0/1)
|
||||
* theme - Color palette: 'ash', 'gruvbox' or 'nord'
|
||||
* units - Measurement units: 'metric' or 'imperial'
|
||||
* language - UI language: 'de' or 'en'
|
||||
* timeFormat - ISO-8601-ish format string for the digital clock.
|
||||
* Date-only: YYYY, YYYY-MM, YYYY-MM-DD
|
||||
* Date-time: above + T + HH:mm, HH:mm:ss, HH:mm:ss.sss
|
||||
* Optional timezone offset (e.g. +02:00)
|
||||
*
|
||||
* theme - Color palette. Pick one of the keys defined in window.THEMES
|
||||
* below. To add a new theme, drop a new *.css file in the same
|
||||
* directory and add an entry to window.THEMES.
|
||||
*
|
||||
* units - Measurement units for the weather widget.
|
||||
* 'metric' (°C, km/h) or 'imperial' (°F, mph)
|
||||
*
|
||||
* language - UI language code. Add a new language by extending
|
||||
* window.TRANSLATIONS in i18n.js. English ('en') is the base;
|
||||
* if a key is missing in the current language, English is used.
|
||||
*
|
||||
* timeFormat - Format string for the digital clock, using ISO-8601-ish
|
||||
* tokens. Any character that is not a token is treated as a
|
||||
* literal (including whitespace).
|
||||
*
|
||||
* YYYY 4-digit year (2026)
|
||||
* MM month 01-12 (10)
|
||||
* DD day 01-31 (07)
|
||||
* HH hour 00-23 (24h) (14)
|
||||
* hh hour 01-12 (12h) (02)
|
||||
* a AM / PM (PM)
|
||||
* mm minute 00-59 (35)
|
||||
* ss second 00-59 (22)
|
||||
* sss millisecond 000-999 (456)
|
||||
*
|
||||
* Date-only forms: YYYY, YYYY-MM, YYYY-MM-DD
|
||||
* Date-time forms: above + T + HH:mm, HH:mm:ss, HH:mm:ss.sss
|
||||
* Any other character is a literal (incl. spaces).
|
||||
*
|
||||
* Examples:
|
||||
* 'HH:mm:ss' -> 14:35:22
|
||||
* 'hh:mm:ss a' -> 02:35:22 PM
|
||||
* 'YYYY-MM-DD' -> 2026-10-07
|
||||
* 'YYYY-MM-DDTHH:mm:ss' -> 2026-10-07T14:35:22
|
||||
*/
|
||||
window.CONFIG = {
|
||||
debug: 1,
|
||||
|
||||
Reference in new issue
Block a user