From 2125d7e08f602970af2c466201c91f70073e4ca5 Mon Sep 17 00:00:00 2001 From: Mikko Ruohola Date: Mon, 5 Jun 2023 21:59:34 +0300 Subject: [PATCH 1/2] Finnish translations. --- src/localize/languages/fi.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/localize/languages/fi.json diff --git a/src/localize/languages/fi.json b/src/localize/languages/fi.json new file mode 100644 index 0000000..31d3942 --- /dev/null +++ b/src/localize/languages/fi.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versio", + "invalid_configuration": "Väärä konfikuraatio", + "show_warning": "Näytä varoitus", + "show_error": "Näytä virhe", + "uv_index": "UV Indeksi", + "uv_risk": "UV Riski" + }, + "uv_levels": { + "low": "Matala", + "moderate": "Kohtalainen", + "high": "Korkea", + "very_high": "Erittäin korkea", + "extreme": "Äärimmäinen" + } +} From 70492b139d3e1e24558eade507dfcc62d8285a24 Mon Sep 17 00:00:00 2001 From: Mikko Ruohola Date: Mon, 5 Jun 2023 22:03:52 +0300 Subject: [PATCH 2/2] Finnish localization --- README.md | 2 +- src/localize/localize.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c998ba..65a2a83 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ The following languages are supported: | Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) | | Portuguese| `pt` | v1.2.0 | [@ViPeR5000](https://github.com/viper5000) | | Swedish | `sv` | v1.2.1 | [@el97](https://github.com/el97) | - +| Finnish | `fi` | | [@PolarFox](https://github.com/PolarFox) | #### How to add a language If you wish to add a language please follow these steps: diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 15c5f0a..635b8ea 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -1,5 +1,6 @@ import * as cs from "./languages/cs.json"; import * as de from './languages/de.json'; +import * as fi from "./languages/fi.json"; import * as en from './languages/en.json'; import * as fr from './languages/fr.json'; import * as hu from './languages/hu.json'; @@ -12,6 +13,7 @@ import * as sv from "./languages/sv.json"; const languages: any = { cs: cs, de: de, + fi: fi, en: en, fr: fr, hu: hu,