fix locales path for offline builds

This commit is contained in:
Moka 2024-10-27 21:08:45 +01:00
parent 06ad6c094a
commit b922e42b24

View File

@ -164,7 +164,7 @@ export async function initI18n(): Promise<void> {
} else {
fileName = camelCaseToKebabCase(ns);
}
return `/locales/${lng}/${fileName}.json?v=${pkg.version}`;
return `./locales/${lng}/${fileName}.json?v=${pkg.version}`;
},
},
defaultNS: "menu",