diff --git a/README.md b/README.md index cbe4842..70f4678 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ The following languages are supported: | Hungarian | `ha` | v1.3.1 | [@erelke](https://github.com/erelke) | | Portuguese| `pt` | v1.1.0 | [@ViPeR5000](https://github.com/viper5000) | | Slovenian | `sl` | v1.1.0 | [@mnheia](https://github.com/mnheia) | +| Swedish | `sv` | v1.3.1 | [@tangix](https://github.com/tangix) | #### How to add a language diff --git a/src/localize/languages/sv.json b/src/localize/languages/sv.json new file mode 100644 index 0000000..d501a3b --- /dev/null +++ b/src/localize/languages/sv.json @@ -0,0 +1,10 @@ +{ + "common": { + "version": "Version", + "invalid_configuration": "Ogiltig konfiguration", + "show_warning": "Visa varning", + "show_error": "Visa fel", + "rate": "Mängd", + "total": "Total" + } +} \ No newline at end of file diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 889871f..a30eaa8 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -5,6 +5,7 @@ import * as fr from './languages/fr.json'; import * as nl from './languages/nl.json'; import * as pt from './languages/pt.json'; import * as sl from './languages/sl.json'; +import * as sv from './languages/sv.json'; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { @@ -15,6 +16,7 @@ const languages: any = { nl: nl, pt: pt, sl: sl, + sv: sv, }; export const CARD_LANGUAGES = [...Object.keys(languages), ''].sort();