Skip to content

Commit

Permalink
Merge branch 'master' of github.com:denysdovhan/purifier-card
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Oct 5, 2020
2 parents 3655c96 + eeb7f79 commit 17cad48
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ This card supports translations. Please, help to add more translations and impro

- English
- Українська (Ukrainian)
- Türkçe (Turkish)
- Français (French)
- [_Your language?_][add-translation]

## Supported models
Expand Down
4 changes: 4 additions & 0 deletions src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

import * as en from './translations/en.json';
import * as uk from './translations/uk.json';
import * as tr from './translations/tr.json';
import * as fr from './translations/fr.json';

var languages = {
en,
uk,
fr,
tr,
};

const DEFAULT_LANG = 'en';
Expand Down
38 changes: 38 additions & 0 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
@@ -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."
}
}
38 changes: 38 additions & 0 deletions src/translations/tr.json
Original file line number Diff line number Diff line change
@@ -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."
}
}

0 comments on commit 17cad48

Please sign in to comment.