Bachir Soussi Chiadmi
417b084216
remain to automaticly export jsons and updated json files with webpack and to understand how to access nested translations
21 lines
278 B
JavaScript
21 lines
278 B
JavaScript
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
import * as en from './en.json'
|
|
import * as fr from './fr.json'
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
const messages = {
|
|
en: {
|
|
...en.default
|
|
},
|
|
fr: {
|
|
...fr.default
|
|
}
|
|
}
|
|
|
|
export default new VueI18n({
|
|
locale: 'en',
|
|
messages
|
|
})
|