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 1/9] 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 2/9] 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 3/9] 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 4/9] 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 5/9] 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 6/9] 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 7/9] 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 8/9] 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 9/9] 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 = {