set base url from vue config

This commit is contained in:
Marek Fraczyk
2021-08-26 15:29:00 +03:00
parent f6b85595df
commit 93caf6ac04

View File

@ -15,7 +15,7 @@ const initialized = i18next.init({
fallbackLng: 'en',
whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'],
backend: {
loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`,
loadPath: `${process.env.BASE_URL}/locales/{{lng}}/{{ns}}.json`,
},
detection: {
order: ['querystring', 'path', 'localStorage', 'navigator'],