mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 16:01:07 -04:00
-- french translations
This commit is contained in:
@ -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;
|
||||
Reference in New Issue
Block a user