add zh-tw translations (#1086)

* add zh-tw translations

* add numOptionsSelected translate
This commit is contained in:
sowiner
2023-01-03 22:48:56 +08:00
committed by GitHub
parent b25b1d5750
commit 377dbe28eb

32
src/translations/zh-tw.ts Normal file
View File

@@ -0,0 +1,32 @@
import { registerTranslation } from '../utilities/localize';
import type { Translation } from '../utilities/localize';
const translation: Translation = {
$code: 'zh-tw',
$name: '正體中文',
$dir: 'ltr',
clearEntry: '清空',
close: '關閉',
copy: '複製',
numOptionsSelected: (num: number) => {
if (num === 0) return '未選擇任何項目';
if (num === 1) return '已選擇 1 個項目';
return `${num} 選擇項目`;
},
currentValue: '當前值',
hidePassword: '隱藏密碼',
loading: '載入中',
progress: '進度',
remove: '移除',
resize: '調整大小',
scrollToEnd: '捲至頁尾',
scrollToStart: '捲至頁首',
selectAColorFromTheScreen: '從螢幕中選擇一種顏色',
showPassword: '顯示密碼',
toggleColorFormat: '切換顏色格式'
};
registerTranslation(translation);
export default translation;