Skip to content

Commit

Permalink
Merge pull request #15 from el97/patch-1
Browse files Browse the repository at this point in the history
Added sv.json
  • Loading branch information
t1gr0u authored May 25, 2023
2 parents a10b724 + af80c2d commit 899dca2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
17 changes: 17 additions & 0 deletions src/localize/languages/sv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"common": {
"version": "Version",
"invalid_configuration": "Ogiltig konfiguration",
"show_warning": "Visa Varning",
"show_error": "Visa Fel",
"uv_index": "UV Index",
"uv_risk": "UV Risk"
},
"uv_levels": {
"low": "Lågt",
"moderate": "Måttligt",
"high": "Högt",
"very_high": "Väldigt Högt",
"extreme": "Extremt"
}
}
10 changes: 6 additions & 4 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import * as de from './languages/de.json';
import * as en from './languages/en.json';
import * as fr from './languages/fr.json';
import * as pt from './languages/pt.json';
import * as nl from './languages/nl.json';
import * as it from "./languages/it.json";
import * as nl from './languages/nl.json';
import * as pt from './languages/pt.json';
import * as sv from "./languages/sv.json";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
de: de,
en: en,
fr: fr,
pt: pt,
nl: nl,
it: it,
nl: nl,
pt: pt,
sv: sv,
};

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

0 comments on commit 899dca2

Please sign in to comment.