feat: implement internationalization for UI text, refactor localStorage keys, and add input validation for state setters.

This commit is contained in:
Kantine Wrapper
2026-03-11 10:14:59 +01:00
parent 00015007d8
commit 9fddf74eb2
19 changed files with 2142 additions and 475 deletions

View File

@@ -1,5 +1,15 @@
/**
* UI injection module.
* Renders the full Kantine Wrapper HTML skeleton into the current page,
* including fonts, icon stylesheet, favicon, and all modal/panel containers.
* Must be called before bindEvents() and any state-rendering logic.
*/
import { langMode } from './state.js';
/**
* Injects the full application HTML into the current tab.
* Idempotent in conjunction with the __KANTINE_LOADED guard in index.js.
*/
export function injectUI() {
document.title = 'Kantine Weekly Menu';