Skip to content

Commit fa9468a

Browse files
committed
fix: use zh-hans as the default lang
1 parent c64a772 commit fa9468a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

nuxt.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module.exports = {
1818
*/
1919
head: {
2020
title: 'VEUI',
21+
htmlAttrs: {
22+
lang: 'zh-Hans'
23+
},
2124
meta: [
2225
{ charset: 'utf-8' },
2326
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },

plugins/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Vue.use(VueI18n)
77

88
export default ({ app, route }) => {
99
app.i18n = new VueI18n()
10-
i18nMgr.locale = getLocale(route.path)
10+
i18nMgr.locale = app.i18n.locale = getLocale(route.path)
1111
}

0 commit comments

Comments
 (0)