This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复语言包的判断

old
宇天 2018-08-14 01:57:46 +08:00
parent d7d653ff0b
commit 020a142bfb
4 changed files with 4 additions and 4 deletions

View File

@ -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类型的弹窗

View File

@ -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

View File

@ -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) {

View File

@ -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) {