-- french translations

This commit is contained in:
Jean-francois lefebvre
2021-06-19 12:12:10 +02:00
parent 11e995a97a
commit 6d2be77b1b
28 changed files with 290 additions and 39 deletions

View File

@ -8,28 +8,28 @@ import app from '@/main';
Vue.use(VueI18Next);
i18next
.use(LanguageDetector)
.use(Backend);
.use(LanguageDetector)
.use(Backend);
const initialized = i18next.init({
fallbackLng: 'en',
whitelist: ['en', 'et', 'fa', 'bn', 'es'],
backend: {
loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`,
},
detection: {
order: ['querystring', 'path', 'localStorage', 'navigator'],
lookupQuerystring: 'lang',
caches: ['localStorage'],
checkWhitelist: true,
},
fallbackLng: 'en',
whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'],
backend: {
loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`,
},
detection: {
order: ['querystring', 'path', 'localStorage', 'navigator'],
lookupQuerystring: 'lang',
caches: ['localStorage'],
checkWhitelist: true,
},
});
initialized.then(() => app.$store.dispatch('language/initLanguage', i18next.language));
const i18n = new VueI18Next(i18next, {
loadComponentNamespace: true,
loadComponentNamespace: true,
});
i18n.initialized = initialized;
export default i18n;
export default i18n;