diff options
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/extra.js | 2 | ||||
-rw-r--r-- | public/js/locale.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index a1a9dbb6..d36592d9 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1092,7 +1092,7 @@ const gistPlugin = new Plugin( (match, utils) => { const gistid = match[1] - const code = `<code data-gist-id="${gistid}"/>` + const code = `<code data-gist-id="${gistid}"></code>` return code } ) diff --git a/public/js/locale.js b/public/js/locale.js index 2a2c1814..71c0f99f 100644 --- a/public/js/locale.js +++ b/public/js/locale.js @@ -11,6 +11,9 @@ $('.ui-locale option').each(function () { }) if (Cookies.get('locale')) { lang = Cookies.get('locale') + if (lang === 'zh') { + lang = 'zh-TW' + } } else if (supportLangs.indexOf(userLang) !== -1) { lang = supportLangs[supportLangs.indexOf(userLang)] } else if (supportLangs.indexOf(userLangCode) !== -1) { |