diff --git a/README.md b/README.md index add37ce7..bafdeebb 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ This card supports translations. Please, help to add more translations and impro - 한국어 (Korean) - Suomi (Finnish) - Català (Catalan) +- 正體中文 (Traditional Chinese) - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.js b/src/localize.js index 998c3855..40697fba 100644 --- a/src/localize.js +++ b/src/localize.js @@ -19,6 +19,7 @@ import * as da from './translations/da.json'; import * as ko from './translations/ko.json'; import * as fi from './translations/fi.json'; import * as ca from './translations/ca.json'; +import * as tw from './translations/tw.json'; var languages = { en, @@ -38,7 +39,8 @@ var languages = { da, ko, fi, - ca + ca, + tw }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/tw.json b/src/translations/tw.json new file mode 100644 index 00000000..dfe9789f --- /dev/null +++ b/src/translations/tw.json @@ -0,0 +1,50 @@ +{ + "status": { + "Cleaning": "清掃中", + "Paused": "暫停中", + "Idle": "閒置中", + "Charging": "充電中", + "Returning home": "正在返回充電座", + "docked": "返回充電座", + "segment cleaning": "區域清掃" + }, + "source": { + "Gentle": "拖地", + "Silent": "安靜", + "Standard": "標準", + "Medium": "強力", + "Turbo": "MAX" + }, + "common": { + "name": "Vacuum Card", + "description": "Vacuum Card 可以讓您控制掃地機器人", + "start": "開始清掃", + "continue": "繼續清掃", + "pause": "暫停清掃", + "stop": "停止清掃", + "return_to_base": "返回充電座", + "locate": "定位掃地機器人", + "not_available": "掃地機器人並不支援" + }, + "error": { + "missing_entity": "必須指定一個實體!" + }, + "editor": { + "entity": "實體 (必填)", + "map": "地圖 (選填)", + "image": "圖片 (選填)", + "compact_view": "精簡檢視", + "compact_view_aria_label_on": "開啟精簡檢視", + "compact_view_aria_label_off": "關閉精簡檢視", + "show_name": "顯示名字", + "show_name_aria_label_on": "開啟名字顯示", + "show_name_aria_label_off": "關閉名字顯示", + "show_status": "顯示狀態", + "show_status_aria_label_on": "開啟狀態顯示", + "show_status_aria_label_off": "關閉狀態顯示", + "show_toolbar": "顯示工具欄", + "show_toolbar_aria_label_on": "開啟工具欄顯示", + "show_toolbar_aria_label_off": "關閉工具欄顯示", + "code_only_note": "提醒: 如果要使用 actions 和 stats 選項,請使用編碼編輯器編輯" + } +}