修复语言包的判断
parent
d7d653ff0b
commit
020a142bfb
|
@ -36,7 +36,7 @@ const LANGUAGES = {
|
|||
}
|
||||
}
|
||||
LANGUAGES['zh-CN'] = LANGUAGES.zh
|
||||
const lang = LANGUAGES[Anot.language || navigator.language || 'en']
|
||||
const lang = LANGUAGES[Anot.language || navigator.language] || LANGUAGES.en
|
||||
let layerDom = {}
|
||||
let layerObj = {}
|
||||
let unique = null // 储存当前打开的1/2/3类型的弹窗
|
||||
|
|
|
@ -81,7 +81,7 @@ const LANGUAGES = {
|
|||
}
|
||||
LANGUAGES['zh-CN'] = LANGUAGES.zh
|
||||
LANGUAGES['zh-TW'] = LANGUAGES.zh
|
||||
const lang = LANGUAGES[Anot.language || navigator.language || 'en']
|
||||
const lang = LANGUAGES[Anot.language || navigator.language] || LANGUAGES.en
|
||||
|
||||
const fixCont = function(vm, tool) {
|
||||
let limit = false
|
||||
|
|
|
@ -79,7 +79,7 @@ const LANGUAGES = {
|
|||
}
|
||||
LANGUAGES['zh-CN'] = LANGUAGES.zh
|
||||
LANGUAGES['zh-TW'] = LANGUAGES.zh
|
||||
const lang = LANGUAGES[Anot.language || navigator.language || 'en']
|
||||
const lang = LANGUAGES[Anot.language || navigator.language] || LANGUAGES.en
|
||||
|
||||
class Uploader {
|
||||
constructor(url) {
|
||||
|
|
|
@ -140,7 +140,7 @@ const LANGUAGES = {
|
|||
}
|
||||
LANGUAGES['zh-CN'] = LANGUAGES.zh
|
||||
LANGUAGES['zh-TW'] = LANGUAGES.zh
|
||||
const lang = LANGUAGES[Anot.language || navigator.language || 'en']
|
||||
const lang = LANGUAGES[Anot.language || navigator.language] || LANGUAGES.en
|
||||
|
||||
marked.setOptions({
|
||||
highlight: function(code, lang) {
|
||||
|
|
Reference in New Issue