From c472daad6ef278f61ccccc3a8d0e555d9f162e1e Mon Sep 17 00:00:00 2001 From: el97 Date: Fri, 12 May 2023 21:56:59 +0200 Subject: [PATCH 1/2] Added sv.json Provided a Swedish translation --- src/localize/languages/sv.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/localize/languages/sv.json diff --git a/src/localize/languages/sv.json b/src/localize/languages/sv.json new file mode 100644 index 0000000..2313382 --- /dev/null +++ b/src/localize/languages/sv.json @@ -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" + } +} From af80c2dc7f304db49c1265a2bdec3eeb8fed7c54 Mon Sep 17 00:00:00 2001 From: el97 Date: Fri, 12 May 2023 22:02:30 +0200 Subject: [PATCH 2/2] Added sv.json Added sv.json and changed the order so it's alphabetical. --- src/localize/localize.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/localize/localize.ts b/src/localize/localize.ts index b2d92c4..975f387 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -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();