feat: add zh-TW locale (#786)

This commit is contained in:
leko 2021-06-17 12:28:34 +08:00 committed by GitHub
parent 12cae1b921
commit 9dcf9f5db1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 225 additions and 4 deletions

View file

@ -35,6 +35,7 @@
<option value="en">🇬🇧 English</option>
<option value="tr">🇹🇷 Türkçe</option>
<option value="zh-CN">🇨🇳 简体中文</option>
<option value="zh-TW">ᴛᴡ 繁體中文</option>
</select>
</div>
</div>
@ -916,6 +917,8 @@ export default {
.replace('Left', '←');
if (this.settings.lang === 'zh-CN') {
shortcut = shortcut.replace('Space', '空格');
} else if (this.settings.lang === 'zh-TW') {
shortcut = shortcut.replace('Space', '空白鍵');
}
if (process.platform === 'darwin') {
return shortcut