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 01/17] 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 02/17] 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 03/17] 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 04/17] 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 05/17] 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 06/17] 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 { From ca5aebf3ca1b589fd69f4aa43741366dd43514fc Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:33:40 +0200 Subject: [PATCH 07/17] Create nl.json --- src/localize/languages/nl.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/localize/languages/nl.json diff --git a/src/localize/languages/nl.json b/src/localize/languages/nl.json new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/localize/languages/nl.json @@ -0,0 +1 @@ + From 0be4090e1e5de8ac0f5f25acc4ccba1279d9ed1b Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:35:45 +0200 Subject: [PATCH 08/17] Update nl.json --- src/localize/languages/nl.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/localize/languages/nl.json b/src/localize/languages/nl.json index 8b13789..4df50a9 100644 --- a/src/localize/languages/nl.json +++ b/src/localize/languages/nl.json @@ -1 +1,17 @@ - +{ + "common": { + "version": "Versie", + "invalid_configuration": "Ongeldige configuratie", + "show_warning": "Toon waarshuwing", + "show_error": "Toon foutmelding", + "uv_index": "UV Index", + "uv_risk": "UV risico" + }, + "uv_levels": { + "low": "Laag", + "moderate": "Matig", + "high": "Hoog", + "very_high": "Zeer hoog", + "extreme": "Extreem" + } +} From 18554b4b1e84b54e55cfc93b69c4cc54e311f902 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:36:16 +0200 Subject: [PATCH 09/17] Update localize.ts --- src/localize/localize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/localize/localize.ts b/src/localize/localize.ts index df64050..dad1be7 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/nl.json'; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { de: de, en: en, fr: fr, + nl: nl, }; export function localize(string: string, search = '', replace = ''): string { From cd0be19ea40aa1a1cb06aefddf756d9e0c625624 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:38:30 +0200 Subject: [PATCH 10/17] Update nl.json --- src/localize/languages/nl.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localize/languages/nl.json b/src/localize/languages/nl.json index 4df50a9..4856117 100644 --- a/src/localize/languages/nl.json +++ b/src/localize/languages/nl.json @@ -4,7 +4,7 @@ "invalid_configuration": "Ongeldige configuratie", "show_warning": "Toon waarshuwing", "show_error": "Toon foutmelding", - "uv_index": "UV Index", + "uv_index": "UV index", "uv_risk": "UV risico" }, "uv_levels": { From 6c8c90f6c3315c05c7d9c8fa5be866a118e876b8 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:39:57 +0200 Subject: [PATCH 11/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 666d593..efbc39e 100644 --- a/README.md +++ b/README.md @@ -88,11 +88,11 @@ The following languages are supported: | Language | Yaml value | Supported | Translated by | | --------- | ---------- | --------- | ----------------------------------------------------------------------------------- | +| Dutch | `nl` | v?.?.? | [@WoBBeLNL] https://github.com/WoBBeLnl) | | 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) | - ## Thanks to - [@iantrich](https://www.github.com/iantrich) for the [boiler-plate card](https://github.com/custom-cards/boilerplate-card), which got me started From 2c00bcac55ebc21d6021fb8d94dd3be142249bd6 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:40:25 +0200 Subject: [PATCH 12/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efbc39e..7fc3bf1 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The following languages are supported: | Language | Yaml value | Supported | Translated by | | --------- | ---------- | --------- | ----------------------------------------------------------------------------------- | -| Dutch | `nl` | v?.?.? | [@WoBBeLNL] https://github.com/WoBBeLnl) | +| Dutch | `nl` | v?.?.? | [@WoBBeLNL](https://github.com/WoBBeLnl) | | 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) | From ebe2c9286ad9cf723205f2074ffdc09425ac5408 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 11:41:46 +0200 Subject: [PATCH 13/17] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7fc3bf1..7e564ec 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ The following languages are supported: | French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | | German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) | + ## Thanks to - [@iantrich](https://www.github.com/iantrich) for the [boiler-plate card](https://github.com/custom-cards/boilerplate-card), which got me started From f4381e65024ca4cded27aa0c9a6a51a9097fef86 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 21:05:36 +0200 Subject: [PATCH 14/17] Update nl.json --- src/localize/languages/nl.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localize/languages/nl.json b/src/localize/languages/nl.json index 4856117..7152859 100644 --- a/src/localize/languages/nl.json +++ b/src/localize/languages/nl.json @@ -2,7 +2,7 @@ "common": { "version": "Versie", "invalid_configuration": "Ongeldige configuratie", - "show_warning": "Toon waarshuwing", + "show_warning": "Toon waarschuwing", "show_error": "Toon foutmelding", "uv_index": "UV index", "uv_risk": "UV risico" From 2b58f532e652099bee6be6ccfeb8e1033d9ee347 Mon Sep 17 00:00:00 2001 From: WoBBeLnl <3839789+WoBBeLnl@users.noreply.github.com> Date: Tue, 2 May 2023 21:06:49 +0200 Subject: [PATCH 15/17] Update localize.ts --- src/localize/localize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localize/localize.ts b/src/localize/localize.ts index dad1be7..fd3c52f 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -1,7 +1,7 @@ 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/nl.json'; +import * as nl from './languages/nl.json'; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { From 9546b976c9cdfaca3fa68c13068c07d3dcf59b9c Mon Sep 17 00:00:00 2001 From: Rui Melo Date: Wed, 3 May 2023 16:41:43 +0100 Subject: [PATCH 16/17] Create pt.json --- src/localize/languages/pt.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/localize/languages/pt.json diff --git a/src/localize/languages/pt.json b/src/localize/languages/pt.json new file mode 100644 index 0000000..c5a0e0a --- /dev/null +++ b/src/localize/languages/pt.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versão", + "invalid_configuration": "Configuração Invalida", + "show_warning": "Mostrar aviso", + "show_error": "Mostrar Erro", + "uv_index": "Índice UV", + "uv_risk": "Risco UV" + }, + "uv_levels": { + "low": "Baixo", + "moderate": "Moderado", + "high": "Alto", + "very_high": "Muito Alto", + "extreme": "Extremo" + } +} From 548b4f0e39edb731d490710de9f650e1cafba2d6 Mon Sep 17 00:00:00 2001 From: Rui Melo Date: Wed, 3 May 2023 16:47:28 +0100 Subject: [PATCH 17/17] Update localize.ts --- src/localize/localize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/localize/localize.ts b/src/localize/localize.ts index df64050..372adeb 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 pt from './languages/pt.json'; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { de: de, en: en, fr: fr, + pt: pt, }; export function localize(string: string, search = '', replace = ''): string {