From e014214a09224d566656cc2b0030dd844a827afe Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:08:15 +0200 Subject: [PATCH 1/6] Fixed Some German Translation --- src/localize/languages/de.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/localize/languages/de.json b/src/localize/languages/de.json index 68242b7..42be478 100644 --- a/src/localize/languages/de.json +++ b/src/localize/languages/de.json @@ -2,8 +2,8 @@ "common": { "version": "Version", "invalid_configuration": "Invalid configuration", - "show_warning": "Show Warning", - "show_error": "Show Error", + "show_warning": "Warnung anzeigen", + "show_error": "Fehler anzeigen", "uv_index": "UV-Index", "uv_risk": "Risikostufe" }, From 6ac185dba51d7250b1a45b54886da70058b3ee61 Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:12:59 +0200 Subject: [PATCH 2/6] Fixed Some German Translation --- src/localize/languages/de.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localize/languages/de.json b/src/localize/languages/de.json index 42be478..3eefc30 100644 --- a/src/localize/languages/de.json +++ b/src/localize/languages/de.json @@ -1,7 +1,7 @@ { "common": { "version": "Version", - "invalid_configuration": "Invalid configuration", + "invalid_configuration": "Ungültige Konfiguration", "show_warning": "Warnung anzeigen", "show_error": "Fehler anzeigen", "uv_index": "UV-Index", From 8fdce3b94a0775e7246ec821b0fa1271e9dd14b7 Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:14:56 +0200 Subject: [PATCH 3/6] Added Italian Translation --- src/localize/languages/it.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/localize/languages/it.json diff --git a/src/localize/languages/it.json b/src/localize/languages/it.json new file mode 100644 index 0000000..4103450 --- /dev/null +++ b/src/localize/languages/it.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versione", + "invalid_configuration": "Configurazione non valida", + "show_warning": "Mostra Avviso", + "show_error": "Mostra Errore", + "uv_index": "Indice UV", + "uv_risk": "Rischio UV" +}, + "uv_levels": { + "low": "Basso", + "moderate": "Moderato", + "high": "Alto", + "very_high": "Altissimo", + "extreme": "Estremo" + } +} \ No newline at end of file From c1c46768b1a0d9bc5e5f3a36aaec23b8d227adc3 Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:26:16 +0200 Subject: [PATCH 4/6] Added (partially) Italian at Languege Table Section --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 666d593..74640b2 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ The following languages are supported: | English | `en` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | | French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | | German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | +| Italian | `it` | v?.?.? | [@SiriosDev](https://github.com/SiriosDev) | ## Thanks to From c6c0edb937d9945fb9fca4fbac0db3dd9bcc81a8 Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:31:09 +0200 Subject: [PATCH 5/6] Lang Table adjusted --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 74640b2..ebc5c1a 100644 --- a/README.md +++ b/README.md @@ -86,12 +86,12 @@ entity: sensor.weather_station_uv The following languages are supported: -| Language | Yaml value | Supported | Translated by | -| --------- | ---------- | --------- | ----------------------------------------------------------------------------------- | -| English | `en` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | -| French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | -| German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | -| Italian | `it` | v?.?.? | [@SiriosDev](https://github.com/SiriosDev) | +| Language | Yaml Value | Supported Since | Translated by | +| --------- | ---------- | --------------- | ----------------------------------------------------------------------------------- | +| English | `en` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | +| French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | +| German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | +| Italian | `it` | v?.?.? | [@SiriosDev](https://github.com/SiriosDev) | ## Thanks to From 80f01cb9b9edc59dd5fcb718c4f7fc7994b2243f Mon Sep 17 00:00:00 2001 From: Sirios_Dev <26876994+SiriosDev@users.noreply.github.com> Date: Mon, 1 May 2023 21:37:09 +0200 Subject: [PATCH 6/6] added italian at localize.ts --- src/localize/localize.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/localize/localize.ts b/src/localize/localize.ts index df64050..211dfca 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -1,12 +1,14 @@ import * as de from './languages/de.json'; import * as en from './languages/en.json'; -import * as fr from './languages/fr.json'; +import * as fr from "./languages/fr.json"; +import * as it from "./languages/it.json"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { de: de, en: en, fr: fr, + it: it }; export function localize(string: string, search = '', replace = ''): string {