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 Feb 2, 2021
2 parents 4730836 + 39bf80b commit ec8073d
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 @@ -185,6 +185,7 @@ This card supports translations. Please, help to add more translations and impro
- Polski (Polish)
- Български (Bulgarian)
- 简体中文 (Simplified Chinese)
- Deutsch (German)
- [_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 @@ -9,6 +9,7 @@ import * as nb from './translations/nb.json';
import * as pl from './translations/pl.json';
import * as bg from './translations/bg.json';
import * as zh from './translations/zh.json';
import * as de from './translations/de.json';

var languages = {
en,
Expand All @@ -19,6 +20,7 @@ var languages = {
pl,
bg,
zh,
de,
};

const DEFAULT_LANG = 'en';
Expand Down
38 changes: 38 additions & 0 deletions src/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"common": {
"name": "Purifier Karte",
"description": "Die Purifier Karte steuert deinen smarten Luftreiniger.",
"not_available": "Entity nicht verfügbar",
"toggle_power": "an/aus"
},
"state": {
"on": "An",
"off": "Aus"
},
"speed": {
"Auto": "Auto",
"Silent": "Leise",
"Favorite": "Favorit",
"Fan": "Lüfter"
},
"error": {
"missing_entity": "Es muss eine Entity definiert werden!",
"xiaomi_miio_level_without_speed": "Geschwindigkeit ist zusammen mit der xiaomi_miio_favorite_level Eigenschaft erforderlich!"
},
"editor": {
"entity": "Entity (Erforderlich)",
"compact_view": "Kompakte Ansicht",
"compact_view_aria_label_on": "Komptaktansicht anschalten",
"compact_view_aria_label_off": "Kompaktansicht ausschalten",
"show_name": "Name anzeigen",
"show_name_aria_label_on": "Namen anzeigen anschalten",
"show_name_aria_label_off": "Namen anzeigen ausschalten",
"show_state": "Status anzeigen",
"show_state_aria_label_on": "Status anzeigen anschalten",
"show_state_aria_label_off": "Status anzeigen ausschalten",
"show_toolbar": "Symbolleiste anzeigen",
"show_toolbar_aria_label_on": "Symbolleiste anzeigen anschalten",
"show_toolbar_aria_label_off": "Symbolleiste anzeigen ausschalten",
"code_only_note": "Bitte beachten: Aktionen und Status Optionen sind nur im Code Editor verfügbar."
}
}

0 comments on commit ec8073d

Please sign in to comment.