Skip to content

Commit

Permalink
feat: Add Japanese Translation (#719)
Browse files Browse the repository at this point in the history
* Add files via upload

* Update localize.ts

Add code for Japanese translation

* Update README.md

Add Japanese language information
  • Loading branch information
yhi264 authored Apr 19, 2024
1 parent 8078ae2 commit bcba901
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ This card supports translations. Please, help to add more translations and impro
- Lietuvių (Lithuanian)
- Română (Romanian)
- 简体中文 (Simplified Chinese)
- 日本語 (Japanese)
- [_Your language?_][add-translation]

## Supported models
Expand Down
2 changes: 2 additions & 0 deletions src/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import * as fr from './translations/fr.json';
import * as he from './translations/he.json';
import * as hu from './translations/hu.json';
import * as it from './translations/it.json';
import * as ja from './translations/ja.json';
import * as ko from './translations/ko.json';
import * as lt from './translations/lt.json';
import * as nb from './translations/nb.json';
Expand Down Expand Up @@ -48,6 +49,7 @@ const languages: Record<string, Translations> = {
he,
hu,
it,
ja,
ko,
lt,
nb,
Expand Down
80 changes: 80 additions & 0 deletions src/translations/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"status": {
"cleaning": "掃除中",
"auto": "自動",
"spot": "スポット",
"edge": "エッジ清掃",
"single_room": "シングルルームモード",
"paused": "一時停止",
"idle": "アイドル",
"stop": "停止",
"charging": "充電中",
"returning": "ホームに戻っています",
"returning_home": "ホームに戻る",
"docked": "ドックに接続中",
"unknown": "不明",
"offline": "オフライン",
"error": "エラー",
"charger_disconnected": "充電器が接続されていません",
"remote_control_active": "リモート操作有効",
"manual_mode": "マニュアルモード",
"shutting_down": "シャットダウン",
"updating": "更新中",
"going_to_target": "目的地へ移動中",
"zoned_cleaning": "ゾーン清掃",
"segment_cleaning": "セグメント清掃"
},
"source": {
"gentle": "やさしく",
"silent": "無音",
"standard": "標準",
"medium": "",
"turbo": "ターボ",
"normal": "通常",
"max": "最大",
"max_plus": "最大+",
"high": "",
"strong": "最強",
"quiet": "静音",
"auto": "自動",
"balanced": "バランス",
"custom": "カスタム",
"off": "オフ"
},
"common": {
"name": "掃除機カード",
"description": "掃除機かーどはロボット掃除機の操作に使用します。",
"start": "開始",
"continue": "続ける",
"pause": "一時停止",
"stop": "中止",
"return_to_base": "ドック",
"locate": "掃除機の場所",
"not_available": "掃除機は利用できません"
},
"error": {
"invalid_config": "設定が無効です",
"missing_entity": "エンティティを選択してください。"
},
"warning": {
"actions_array": "警告:'actions'は既存のボタンのデフォルトアクションを上書きするために使用されています。アクションを追加したい場合は、'shortcuts' オプションを使用してください。"
},
"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": "注:actionとstatsのオプション設定は、コードエディターで行ってください。"
}
}

0 comments on commit bcba901

Please sign in to comment.