From af8f9ccb562804f0481f3353fe9a0c37d2eefc72 Mon Sep 17 00:00:00 2001 From: Ulas Date: Tue, 31 Mar 2026 21:53:14 +0200 Subject: [PATCH] feat: initialize i18n before first route render --- public/router.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/router.js b/public/router.js index e4e1745..e170fc6 100644 --- a/public/router.js +++ b/public/router.js @@ -5,6 +5,7 @@ */ import { auth } from '/api.js'; +import { initI18n, getLocale } from '/i18n.js'; // -------------------------------------------------------- // Routen-Definitionen @@ -430,7 +431,10 @@ if (window.visualViewport) { // -------------------------------------------------------- // Initialisierung // -------------------------------------------------------- -navigate(location.pathname, false); +(async () => { + await initI18n(); + navigate(location.pathname, false); +})(); // Globale Exporte window.oikos = {