You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 19, 2022. It is now read-only.
Hello!
I use i18next with vue-cli 2.x with this config:
import Vue from 'vue'
import i18next from 'i18next'
import VueI18Next from '@panter/vue-i18next'
import XHR from 'i18next-xhr-backend'
Vue.use(VueI18Next);
i18next
.use(XHR)
.init({
lng: 'ru',
preload: ['ru'],
fallbackLng: 'en',
debug: true,
backend: {
loadPath: '/static/i18n/{{ns}}.{{lng}}.json',
addPath: '/static/i18n/{{ns}}-{{lng}}',
},
ns: [
'common',
],
defaultNS: ['common']
});
export default new VueI18Next(i18next);
But with vue-cli 3.x this config not working:
i18next::backendConnector: loading namespace common for language ru failed failed parsing /static/i18n/common.ru.json to json
i18next::backendConnector: loading namespace common for language en failed failed parsing /public/i18n/common.en.json to json
How to configure load path to load translations with vue-cli 3.x?
The text was updated successfully, but these errors were encountered:
Hello!
I use i18next with vue-cli 2.x with this config:
But with vue-cli 3.x this config not working:
How to configure load path to load translations with vue-cli 3.x?
The text was updated successfully, but these errors were encountered: