Skip to content

Commit

Permalink
Include the Slovak translation
Browse files Browse the repository at this point in the history
  • Loading branch information
rohankapoorcom committed Aug 12, 2023
1 parent 50be66b commit 50fb6a5
Show file tree
Hide file tree
Showing 2 changed files with 6 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
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 50fb6a5

Please sign in to comment.