页面完善
This commit is contained in:
@@ -29,13 +29,13 @@ export function getLanguage() {
|
||||
if (chooseLanguage) return chooseLanguage
|
||||
|
||||
// if has not choose language
|
||||
const language = (navigator.language || navigator.browserLanguage).toLowerCase()
|
||||
const locales = Object.keys(messages)
|
||||
for (const locale of locales) {
|
||||
if (language.indexOf(locale) > -1) {
|
||||
return locale
|
||||
}
|
||||
}
|
||||
// const language = (navigator.language || navigator.browserLanguage).toLowerCase()
|
||||
// const locales = Object.keys(messages)
|
||||
// for (const locale of locales) {
|
||||
// if (language.indexOf(locale) > -1) {
|
||||
// return locale
|
||||
// }
|
||||
// }
|
||||
return 'zhCN'
|
||||
}
|
||||
const i18n = new VueI18n({
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user