fix: use zh-hans as the default lang
This commit is contained in:
parent
c64a77286e
commit
fa9468a7d3
@ -18,6 +18,9 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
head: {
|
head: {
|
||||||
title: 'VEUI',
|
title: 'VEUI',
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: 'zh-Hans'
|
||||||
|
},
|
||||||
meta: [
|
meta: [
|
||||||
{ charset: 'utf-8' },
|
{ charset: 'utf-8' },
|
||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
|
@ -7,5 +7,5 @@ Vue.use(VueI18n)
|
|||||||
|
|
||||||
export default ({ app, route }) => {
|
export default ({ app, route }) => {
|
||||||
app.i18n = new VueI18n()
|
app.i18n = new VueI18n()
|
||||||
i18nMgr.locale = getLocale(route.path)
|
i18nMgr.locale = app.i18n.locale = getLocale(route.path)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user