Skip to content

Commit

Permalink
Adds Polish translation (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorBuczko authored Oct 2, 2020
1 parent f6cd270 commit 4df9223
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/localize/languages/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"config": {
"optional": "Opcjonalny",
"name": "Tytuł",
"time_entity": "Encja czasu",
"mode_entity": "Encja trybu",
"duration_entity": "Encja czasu trwania",
"invalid_configuration": "Niewłaściwa konfiguracja",
"required_entity_missing": "Wymagana encja %entity% nie została skonfigurowana",
"required_entity_not_found": "Wymagana encja %entity% nie została znaleziona",
"force_native_time_picker_for_device": "Wymuś natywny sposób wyboru czasu w tej przeglądarce"
},
"card": {
"alarm_mode": "Tryb alarmu",
"alarm_duration": "Czas trwania alarmu"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import * as de from './languages/de.json';
import * as en from './languages/en.json';
import * as nb from './languages/nb.json';
import * as pl from './languages/pl.json';

const languages = {
de: de,
en: en,
nb: nb,
no: nb,
pl: pl,
};

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

0 comments on commit 4df9223

Please sign in to comment.