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/4] 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 594eb45f0611728d26f60935f6aae2178dadd34b Mon Sep 17 00:00:00 2001 From: Adrien LUC Date: Sun, 4 Oct 2020 15:38:09 +0200 Subject: [PATCH 2/4] Add French translation --- README.md | 1 + src/localize.js | 2 ++ src/translations/fr.json | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/translations/fr.json diff --git a/README.md b/README.md index 36bdec8..e9fb4fd 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) +- Français - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.js b/src/localize.js index 3ff86b4..ad68410 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 fr from './translations/fr.json'; var languages = { en, uk, + fr, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/fr.json b/src/translations/fr.json new file mode 100644 index 0000000..0a6808e --- /dev/null +++ b/src/translations/fr.json @@ -0,0 +1,38 @@ +{ + "common": { + "name": "Carte purificateur", + "description": "La carte purificateur vous permet de contrôler votre purificateur d'air intelligent.", + "not_available": "Le purificateur n'est pas disponible", + "toggle_power": "Allumer/éteindre" + }, + "state": { + "on": "Allumé", + "off": "Éteint" + }, + "speed": { + "Auto": "Auto", + "Silent": "Nuit", + "Favorite": "Favori", + "Fan": "Manuel" + }, + "error": { + "missing_entity": "Il est obligatoire de spécifier une entité!", + "xiaomi_miio_level_without_speed": "speed est obligatoire avec la propriété xiaomi_miio_favorite_level!" + }, + "editor": { + "entity": "Entité (obligatoire)", + "compact_view": "Vue compacte", + "compact_view_aria_label_on": "Activer la vue compacte", + "compact_view_aria_label_off": "Désactiver la vue compacte", + "show_name": "Afficher le nom", + "show_name_aria_label_on": "Activer affichage du nom", + "show_name_aria_label_off": "Désactiver affichage du nom", + "show_state": "Afficher l'état", + "show_state_aria_label_on": "Activer l'affichage de l'état", + "show_state_aria_label_off": "Désactiver l'affichage de l'état", + "show_toolbar": "Afficher la barre d'outils", + "show_toolbar_aria_label_on": "Activer l'affichage de la barre d'outils", + "show_toolbar_aria_label_off": "Désactiver l'affichage de la barre d'outils", + "code_only_note": "Remarque: Les options de réglage des actions et statistiques sont disponibles exclusivement en utilisant l'éditeur de code." + } +} From f54ac11a9b9b31a654d546a0064197d5709d37fc Mon Sep 17 00:00:00 2001 From: AdrinkBeer <39377916+AdrinkBeer@users.noreply.github.com> Date: Sun, 4 Oct 2020 16:09:13 +0200 Subject: [PATCH 3/4] 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 e9fb4fd..abe1127 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) -- Français +- Français (French) - [_Your language?_][add-translation] ## Supported models 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 4/4] 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