mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
add zh-tw translations (#1086)
* add zh-tw translations * add numOptionsSelected translate
This commit is contained in:
32
src/translations/zh-tw.ts
Normal file
32
src/translations/zh-tw.ts
Normal 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;
|
||||
Reference in New Issue
Block a user