From 38bb3df95eef1793a362fd10e21da3f36814040a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20=C3=96mero=C4=9Flu?= Date: Sat, 3 Oct 2020 22:38:28 +0300 Subject: [PATCH 1/2] Add Turkish translation --- README.md | 1 + src/localize.js | 2 ++ src/translations/tr.json | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/translations/tr.json diff --git a/README.md b/README.md index fb3c5d6..2c86265 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ This card supports translations. Please, help to add more translations and impro - English - Українська (Ukrainian) +- Turkish - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.js b/src/localize.js index 3ff86b4..f7c689f 100644 --- a/src/localize.js +++ b/src/localize.js @@ -3,10 +3,12 @@ import * as en from './translations/en.json'; import * as uk from './translations/uk.json'; +import * as tr from './translations/tr.json'; var languages = { en, uk, + tr, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/tr.json b/src/translations/tr.json new file mode 100644 index 0000000..cd86de3 --- /dev/null +++ b/src/translations/tr.json @@ -0,0 +1,38 @@ +{ + "common": { + "name": "Purifier Card", + "description": "Purifier kartı hava temizleyicinizi kontrol etmenize yardımcı olur.", + "not_available": "Varlık müsait değil", + "toggle_power": "Kapat/Aç" + }, + "state": { + "on": "Açık", + "off": "Kapalı" + }, + "speed": { + "Auto": "Otomatik", + "Silent": "Sessiz", + "Favorite": "Favori", + "Fan": "Fan" + }, + "error": { + "missing_entity": "Varlığı belirtmeniz gereklidir!", + "xiaomi_miio_level_without_speed": "Hız xiaomi_miio_favorite_level için gereklidir!" + }, + "editor": { + "entity": "Varlık (Gerekli)", + "compact_view": "Kompakt Görünüm", + "compact_view_aria_label_on": "Kompakt Görünümü aç", + "compact_view_aria_label_off": "Kompakt Görünümü kapat", + "show_name": "Show Name", + "show_name_aria_label_on": "İsim gösterimini aç", + "show_name_aria_label_off": "İsim gösterimini kapat", + "show_state": "Show State", + "show_state_aria_label_on": "Durum gösterimini aç", + "show_state_aria_label_off": "Durum gösterimini kapat", + "show_toolbar": "Show Toolbar", + "show_toolbar_aria_label_on": "Araç çubuğu gösterimini aç", + "show_toolbar_aria_label_off": "Araç çubuğu gösterimini kapat", + "code_only_note": "Not: Aksiyon ataması ve istatistik seçenekleri şu anda Kod Editörü kullanımı ile mümkündür." + } +} From 9c8a86a0593a4b3c1ff251ff08ffbc6d892f9f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20=C3=96mero=C4=9Flu?= Date: Sun, 4 Oct 2020 17:37:18 +0300 Subject: [PATCH 2/2] Update README.md Co-authored-by: Denys Dovhan --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c86265..55c4772 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ This card supports translations. Please, help to add more translations and impro - English - Українська (Ukrainian) -- Turkish +- Türkçe (Turkish) - [_Your language?_][add-translation] ## Supported models