设置默认语言
This commit is contained in:
parent
2a67cb53b4
commit
1d1910d50b
|
@ -28,7 +28,7 @@ const messages = {
|
|||
const i18n = new VueI18n({
|
||||
// set locale
|
||||
// options: en | zh | es
|
||||
locale: Cookies.get('language') || 'en',
|
||||
locale: Cookies.get('language') || 'zh',
|
||||
// set locale messages
|
||||
messages
|
||||
})
|
||||
|
|
|
@ -6,7 +6,7 @@ const state = {
|
|||
withoutAnimation: false
|
||||
},
|
||||
device: 'desktop',
|
||||
language: Cookies.get('language') || 'en',
|
||||
language: Cookies.get('language') || 'zh',
|
||||
size: Cookies.get('size') || 'medium'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue