diff --git a/README.md b/README.md index a5b56ef..d96f07f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/localize.js b/src/localize.js index b311949..7cd3f3a 100644 --- a/src/localize.js +++ b/src/localize.js @@ -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, @@ -19,6 +20,7 @@ var languages = { pl, bg, zh, + de, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/de.json b/src/translations/de.json new file mode 100644 index 0000000..bea7826 --- /dev/null +++ b/src/translations/de.json @@ -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." + } +}