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