Skip to content

Commit

Permalink
Merge pull request #49 from misa1515/patch-1
Browse files Browse the repository at this point in the history
Create sk.json
  • Loading branch information
rohankapoorcom authored Aug 12, 2023
2 parents e8df6a8 + 50fb6a5 commit a3bb013
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,12 @@ This card supports translations. Please, help to add more translations and impro
- French
- German
- Hebrew
- Korean
- Nederlands (Dutch)
- Polish (polski)
- Portuguese
- Russian
- Korean
- Slovak
- [_Your language?_][add-translation]

## Credits
Expand Down
62 changes: 62 additions & 0 deletions src/localize/languages/sk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"common": {
"version": "v",
"invalid_configuration": "Neplatná konfigurácia",
"show_warning": "Zobraziť warning",
"show_error": "Zobraziť error"
},
"tabs": {
"general": {
"title": "Všeobecné",
"entity": "Entita (požadovaná)",
"name": "Názov (voliteľný)",
"show_name": "Zobraziť názov?",
"show_state": "Zobraziť stav?",
"compact": "Kompaktné?"
},
"icon": {
"title": "Ikona",
"icon": "Ikona (voliteľné)",
"show_icon": "Zobraziť ikonu?",
"use_state_color": "Use state color?",
"tap_action": "Klepnite na akciu"
},
"slider": {
"title": "Posuvník",
"direction": "Smer",
"background": "Pozadie",
"use_brightness": "Použiť jas?",
"show_track": "Zobraziť skladbu?",
"toggle_on_click": "Pôsobiť ako prepínač (zakázať posúvanie)",
"force_square": "Silový štvorec?"
},
"action_button": {
"title": "Akčné tlačidlo",
"mode": "Režim",
"icon": "Ikona",
"show_button": "Zobraziť tlačidlo?",
"show_spinner": "Zobraziť číselník?",
"tap_action": "Klepnite na akciu"
}
},
"state": {
"off": "Vypnúť",
"on": "Zapnúť"
},
"direction": {
"left-right": "Zľava doprava",
"top-bottom": "Zhora nadol",
"bottom-top": "Zdola nahor"
},
"background": {
"striped": "Prúžkované",
"gradient": "Gradient",
"solid": "Pevné",
"triangle": "Trojuholník",
"custom": "Voliteľné"
},
"mode": {
"toggle": "Prepnúť",
"custom": "Voliteľné"
}
}
7 changes: 4 additions & 3 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as en from './languages/en.json';
import * as de from './languages/de.json';
import * as fr from './languages/fr.json';
import * as he from './languages/he.json';
import * as ko from './languages/ko.json';
import * as nl from './languages/nl.json';
import * as pl from './languages/pl.json';
import * as pt from './languages/pt.json';
import * as ru from './languages/ru.json';
import * as ko from './languages/ko.json';

import * as sk from './languages/sk.json';


// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand All @@ -16,11 +16,12 @@ const languages: any = {
de: de,
fr: fr,
he: he,
ko: ko,
nl: nl,
pl: pl,
pt: pt,
ru: ru,
ko: ko,
sk: sk,
};

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

0 comments on commit a3bb013

Please sign in to comment.