Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sk.json #49

Merged
merged 2 commits into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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