Skip to content

Commit

Permalink
Merge pull request #96 from frauhottelmann/main
Browse files Browse the repository at this point in the history
Add German translation
  • Loading branch information
mattieha authored Jul 7, 2021
2 parents 4ae999a + b96df39 commit dd9e046
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ When you discover any bugs please open an [issue](https://github.com/mattieha/sl
This card supports translations. Please, help to add more translations and improve existing ones. Here's a list of supported languages:

- English
- German
- Hebrew
- Nederlands (Dutch)
- Polish (polski)
Expand Down
62 changes: 62 additions & 0 deletions src/localize/languages/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"common": {
"version": "v",
"invalid_configuration": "Ungültige Konfiguration",
"show_warning": "Zeige Warnung",
"show_error": "Zeige Fehler"
},
"tabs": {
"general": {
"title": "Allgemein",
"entity": "Entiät (vorgeschrieben)",
"name": "Name (optional)",
"show_name": "Namen zeigen?",
"show_state": "Zustand zeigen?",
"compact": "Kompakt?"
},
"icon": {
"title": "Icon",
"icon": "Icon (optional)",
"show_icon": "Icon zeigen?",
"use_state_color": "Zustandsfarbe verwenden?",
"tap_action": "Tap action"
},
"slider": {
"title": "Schieberegler",
"direction": "Richtung",
"background": "Hintergrund",
"use_brightness": "Helligkeit benutzen?",
"show_track": "Spur anzeigen?",
"toggle_on_click": "Als Schalter benutzen (schieben deaktivieren)",
"force_square": "Quadrat erzwingen?"
},
"action_button": {
"title": "Action-Knopf",
"mode": "Modus",
"icon": "Icon",
"show_button": "Knopf zeigen?",
"show_spinner": "Spinner anzeigen?",
"tap_action": "Tap action"
}
},
"state": {
"off": "Aus",
"on": "An"
},
"direction": {
"left-right": "Links nach Rechts",
"top-bottom": "Oben nach Unten",
"bottom-top": "Unten nach Oben"
},
"background": {
"striped": "gestreift",
"gradient": "Farbverlauf",
"solid": "Einfarbig",
"triangle": "Dreieck",
"custom": "benuzerdefiniert"
},
"mode": {
"toggle": "Umschalter",
"custom": "benuzerdefiniert"
}
}
3 changes: 3 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as en from './languages/en.json';
import * as de from './languages/de.json';
import * as he from './languages/he.json';
import * as nl from './languages/nl.json';
import * as pl from './languages/pl.json';
Expand All @@ -7,9 +8,11 @@ import * as ru from './languages/ru.json';
import * as ko from './languages/ko.json';



// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
en: en,
de: de,
he: he,
nl: nl,
pl: pl,
Expand Down

0 comments on commit dd9e046

Please sign in to comment.