Skip to content

Commit

Permalink
feat: Add polish language (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
padawarmik authored and IhorSyerkov committed Apr 27, 2022
1 parent 666de7c commit cb5a4d4
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/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"common": {
"version": "Wersja",
"name":"Karta biurka Linak",
"description": "Karta do kontrolowania wysokości biurka",
"invalid_configuration": "Niepoprawna konfiguracja",
"desk_and_height_required": "Sensor biurka oraz wyskości są wymagane",
"min_and_max_height_required": "`min_height` oraz `max_height` są wymagane"
},
"editor": {
"name": "Nazwa (Opcjonalna)",
"desk":"Encja Biurka (Wymagane)",
"height_sensor":"Sensor wysokości biurka (Wymagane)",
"connection_sensor":"Sensor połączenia z biurkiem (Wymagane)",
"moving_sensor":"Sensor ruchu biurka (Wymagane)",
"min_height":"Minimalna wysokość(Wymagane)",
"max_height":"Maksymalna wysokość (Wymagane)",
"presets":"Profile"
},
"status": {
"connected": "Połączono",
"disconnected": "Rozłączono"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import * as en from './languages/en.json';
import * as uk from './languages/uk.json';
import * as de from './languages/de.json';
import * as fr from './languages/fr.json';
import * as pl from './languages/pl.json';

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

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

0 comments on commit cb5a4d4

Please sign in to comment.