From 377dbe28eb8ac644bb0935a0642f5c455a53cb0f Mon Sep 17 00:00:00 2001 From: sowiner Date: Tue, 3 Jan 2023 22:48:56 +0800 Subject: [PATCH] add zh-tw translations (#1086) * add zh-tw translations * add numOptionsSelected translate --- src/translations/zh-tw.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/translations/zh-tw.ts diff --git a/src/translations/zh-tw.ts b/src/translations/zh-tw.ts new file mode 100644 index 000000000..997bf210a --- /dev/null +++ b/src/translations/zh-tw.ts @@ -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;