Adding translation by using i18n
This commit is contained in:
13
app/frontend/src/plugins/i18n.js
Normal file
13
app/frontend/src/plugins/i18n.js
Normal file
@ -0,0 +1,13 @@
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
export const i18n = new VueI18n({
|
||||
locale: 'en',
|
||||
fallbackLocale: 'en',
|
||||
messages: {
|
||||
'en': require('@/locales/en.json'),
|
||||
'fr': require('@/locales/fr.json')
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user