From 5f66f5658423df358bb385fcb16011400f1ce5c8 Mon Sep 17 00:00:00 2001 From: Eric Reiche Date: Mon, 1 Feb 2021 19:21:51 +0100 Subject: [PATCH 1/4] Create de.json Added German translation (informal) --- src/translations/de.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/translations/de.json 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." + } +} From 7266566db610b794147ac7aa67fb3807597348ef Mon Sep 17 00:00:00 2001 From: Eric Reiche Date: Tue, 2 Feb 2021 17:28:25 +0100 Subject: [PATCH 2/4] Add de/German to localize.js --- src/localize.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/localize.js b/src/localize.js index 69b00b1..b7d3e24 100644 --- a/src/localize.js +++ b/src/localize.js @@ -8,6 +8,7 @@ import * as fr from './translations/fr.json'; import * as nb from './translations/nb.json'; import * as pl from './translations/pl.json'; import * as bg from './translations/bg.json'; +import * as de from './translations/de.json'; var languages = { en, @@ -17,6 +18,7 @@ var languages = { nb, pl, bg, + de, }; const DEFAULT_LANG = 'en'; From c7c3563e59160c5a19e6d2ceaaed3a2755c9d74e Mon Sep 17 00:00:00 2001 From: Eric Reiche Date: Tue, 2 Feb 2021 17:29:16 +0100 Subject: [PATCH 3/4] Add de/German to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2b6abfb..35f8cb4 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,7 @@ This card supports translations. Please, help to add more translations and impro - Norsk (Norwegian) - Polski (Polish) - Български (Bulgarian) +- Deuytsch (German) - [_Your language?_][add-translation] ## Supported models From e96ea49042bb1b640dedcfbdabbc7c6f9f50781f Mon Sep 17 00:00:00 2001 From: Eric Reiche Date: Tue, 2 Feb 2021 17:31:16 +0100 Subject: [PATCH 4/4] Fixed typo in "Deutsch" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35f8cb4..963e82a 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ This card supports translations. Please, help to add more translations and impro - Norsk (Norwegian) - Polski (Polish) - Български (Bulgarian) -- Deuytsch (German) +- Deutsch (German) - [_Your language?_][add-translation] ## Supported models