feat: initialize i18n before first route render
This commit is contained in:
+5
-1
@@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { auth } from '/api.js';
|
import { auth } from '/api.js';
|
||||||
|
import { initI18n, getLocale } from '/i18n.js';
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
// Routen-Definitionen
|
// Routen-Definitionen
|
||||||
@@ -430,7 +431,10 @@ if (window.visualViewport) {
|
|||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
// Initialisierung
|
// Initialisierung
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
navigate(location.pathname, false);
|
(async () => {
|
||||||
|
await initI18n();
|
||||||
|
navigate(location.pathname, false);
|
||||||
|
})();
|
||||||
|
|
||||||
// Globale Exporte
|
// Globale Exporte
|
||||||
window.oikos = {
|
window.oikos = {
|
||||||
|
|||||||
Reference in New Issue
Block a user