+ {/if}
@@ -295,4 +297,3 @@
{/if}
-
diff --git a/src/lib/i18n.js b/src/lib/i18n.js
index 7e3bae7..5c757d1 100644
--- a/src/lib/i18n.js
+++ b/src/lib/i18n.js
@@ -31,10 +31,10 @@ async function loadTranslations(lang) {
// Dynamically import all translation files for the specific language
// Vite will code-split these and only bundle the ones actually used
- const modules = import.meta.glob('/src/locales/*/*.json');
+ const modules = import.meta.glob('../locales/*/*.json');
for (const path in modules) {
- if (path.includes(`/locales/${lang}/`)) {
+ if (path.includes(`/locales/${lang}/`) || path.includes(`\\locales\\${lang}\\`)) {
const module = await modules[path]();
Object.assign(translations, module.default || module);
}