diff --git a/README.md b/README.md index 7e564ec..e5d89e4 100644 --- a/README.md +++ b/README.md @@ -88,10 +88,11 @@ The following languages are supported: | Language | Yaml value | Supported | Translated by | | --------- | ---------- | --------- | ----------------------------------------------------------------------------------- | -| Dutch | `nl` | v?.?.? | [@WoBBeLNL](https://github.com/WoBBeLnl) | +| Dutch | `nl` | v1.2.0 | [@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) | +| Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) | ## Thanks to diff --git a/src/localize/languages/de.json b/src/localize/languages/de.json index 68242b7..3eefc30 100644 --- a/src/localize/languages/de.json +++ b/src/localize/languages/de.json @@ -1,9 +1,9 @@ { "common": { "version": "Version", - "invalid_configuration": "Invalid configuration", - "show_warning": "Show Warning", - "show_error": "Show Error", + "invalid_configuration": "Ungültige Konfiguration", + "show_warning": "Warnung anzeigen", + "show_error": "Fehler anzeigen", "uv_index": "UV-Index", "uv_risk": "Risikostufe" }, 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 diff --git a/src/localize/localize.ts b/src/localize/localize.ts index fd3c52f..d65a18c 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -2,6 +2,7 @@ import * as de from './languages/de.json'; import * as en from './languages/en.json'; import * as fr from './languages/fr.json'; import * as nl from './languages/nl.json'; +import * as it from "./languages/it.json"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { @@ -9,6 +10,7 @@ const languages: any = { en: en, fr: fr, nl: nl, + it: it, }; export function localize(string: string, search = '', replace = ''): string {