feat: use vue-i18n 9 for vue3
This commit is contained in:
parent
3d6aca3510
commit
7c3c2945f8
19 changed files with 123 additions and 71 deletions
|
|
@ -1,12 +1,10 @@
|
|||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import langEN from './lang/en.json'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
export const i18n = new VueI18n({
|
||||
export const i18n = createI18n({
|
||||
locale: 'en', // set locale
|
||||
fallbackLocale: 'en',
|
||||
globalInjection: true,
|
||||
messages: {
|
||||
en: langEN,
|
||||
},
|
||||
Reference in a new issue