Skip to content

Commit

Permalink
feat: Added German translation
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorSyerkov committed Jul 1, 2021
1 parent 03a1d10 commit d447a18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/localize/languages/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"common": {
"version": "Version",
"name": "Linak Desk Card",
"description": "Kontrolliere die Tischhöhe mit dieser Karte",
"invalid_configuration": "Fehlerhafte Konfiguration",
"desk_and_height_required": "Tisch- und Höhensensor sind erforderlich",
"min_and_max_height_required": "min_height und max_height Einstellungen sind erforderlich"
},
"editor": {
"name": "Name (Optional)",
"desk": "Tisch Entität (Erforderlich)",
"height_sensor": "Height Sensor (Erforderlich)",
"connection_sensor": "Verbindungs-Sensor (Erforderlich)",
"moving_sensor": "Höhen-Sensor (Erforderlich)",
"min_height": "Min Höhe (Erforderlich)",
"max_height": "Max Höhe (Erforderlich)",
"presets": "Voreinstellungen"
},
"status": {
"connected": "Verbunden",
"disconnected": "Getrennt"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as en from './languages/en.json';
import * as uk from './languages/uk.json';
import * as de from './languages/de.json';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
en,
uk,
de,
};

export function localize(string: string, search = '', replace = ''): string {
Expand Down

0 comments on commit d447a18

Please sign in to comment.