Skip to content

Commit

Permalink
feat: Add Traditional Chinese (denysdovhan#196)
Browse files Browse the repository at this point in the history
* Create tw

* Rename tw to tw.json

* Update README.md

add Traditional Chinese

* add Traditional Chinese

* Update localize.js

* Update tw.json

* Update tw.json

* Update tw.json

* Create tw.json
  • Loading branch information
nova12324 authored Mar 22, 2021
1 parent 332416a commit c1ad452
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -38,7 +39,8 @@ var languages = {
da,
ko,
fi,
ca
ca,
tw
};

const DEFAULT_LANG = 'en';
Expand Down
50 changes: 50 additions & 0 deletions src/translations/tw.json
Original file line number Diff line number Diff line change
@@ -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 選項,請使用編碼編輯器編輯"
}
}

0 comments on commit c1ad452

Please sign in to comment.