From 3aefca0a4480aad60fb26ac64204ac340dc7026f Mon Sep 17 00:00:00 2001 From: Ulas Date: Tue, 31 Mar 2026 23:19:05 +0200 Subject: [PATCH] feat: i18n navigation labels Replace all hardcoded German strings in router.js (navItems labels, aria-labels, skip-link, error/toast messages) with t() calls. Add a locale-changed event listener that re-renders sidebar and bottom-nav items on language switch. --- public/router.js | 72 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 22 deletions(-) diff --git a/public/router.js b/public/router.js index e170fc6..5f21124 100644 --- a/public/router.js +++ b/public/router.js @@ -5,7 +5,7 @@ */ import { auth } from '/api.js'; -import { initI18n, getLocale } from '/i18n.js'; +import { initI18n, getLocale, t } from '/i18n.js'; // -------------------------------------------------------- // Routen-Definitionen @@ -216,8 +216,8 @@ async function renderPage(route, previousPath = null) { */ function renderAppShell(container) { container.innerHTML = ` - Zum Inhalt springen -