Skip to content

Commit

Permalink
Merge pull request #7 from AdrinkBeer/master
Browse files Browse the repository at this point in the history
Add French translation
  • Loading branch information
denysdovhan authored Oct 5, 2020
2 parents cb69a45 + 85b2848 commit eeb7f79
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ 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
2 changes: 2 additions & 0 deletions src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
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,
};

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."
}
}

0 comments on commit eeb7f79

Please sign in to comment.