initial
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import { getLocale } from '../common/i18n'
|
||||
import {
|
||||
getLocale
|
||||
} from '../common/i18n'
|
||||
import i18nMgr from 'veui/managers/i18n'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
export default ({ app, route }) => {
|
||||
export default ({
|
||||
app,
|
||||
route
|
||||
}) => {
|
||||
app.i18n = new VueI18n()
|
||||
i18nMgr.locale = app.i18n.locale = getLocale(route.path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user