Skip to content

Commit

Permalink
Merge pull request #21 from tangix/se-translation
Browse files Browse the repository at this point in the history
Added Swedish translation
  • Loading branch information
t1gr0u authored Oct 27, 2023
2 parents acbe725 + 4601336 commit f4d3bb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions src/localize/languages/sv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"common": {
"version": "Version",
"invalid_configuration": "Ogiltig konfiguration",
"show_warning": "Visa varning",
"show_error": "Visa fel",
"rate": "Mängd",
"total": "Total"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -15,6 +16,7 @@ const languages: any = {
nl: nl,
pt: pt,
sl: sl,
sv: sv,
};

export const CARD_LANGUAGES = [...Object.keys(languages), ''].sort();
Expand Down

0 comments on commit f4d3bb7

Please sign in to comment.