Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Traditional Chinese #196

Merged
merged 9 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
49 changes: 49 additions & 0 deletions src/translations/tw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"status": {
"Cleaning": "清掃中",
"Paused": "暫停中",
"Idle": "閒置中",
"Charging": "充電中",
"Returning home": "正在返回充電座",
"docked": "Docked"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not translated

},
"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 選項,請使用編碼編輯器編輯"
}
}