earlier loading of language files

This commit is contained in:
Vincent CLAVIEN
2025-01-22 19:52:28 +01:00
parent db2e56d243
commit 84b13b77fc
2 changed files with 6 additions and 6 deletions

View File

@@ -27,12 +27,6 @@ document.addEventListener("alpine:init", () => {
let appStrings = {};
for (const lang in appLangs) {
const script = document.createElement("script");
script.src = `js/i18n/${lang}.js`;
document.head.appendChild(script);
}
document.addEventListener("alpine-i18n:ready", function () {
AlpineI18n.create("en", appStrings);
AlpineI18n.fallbackLocale = "en";