diff --git a/README.md b/README.md index 9c998ba..c364c89 100644 --- a/README.md +++ b/README.md @@ -98,6 +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) | +| Spanish | `es` | v1.2.2 | [@gonzo1805](https://github.com/gonzo1805) #### How to add a language diff --git a/src/localize/languages/es.json b/src/localize/languages/es.json new file mode 100644 index 0000000..fda3707 --- /dev/null +++ b/src/localize/languages/es.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versión", + "invalid_configuration": "Configuración inválida", + "show_warning": "Mostrar Alerta", + "show_error": "Mostrar Error", + "uv_index": "Índice UV", + "uv_risk": "Riesgo UV" + }, + "uv_levels": { + "low": "Bajo", + "moderate": "Moderado", + "high": "Alto", + "very_high": "Muy Alto", + "extreme": "Extremo" + } +} \ No newline at end of file diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 15c5f0a..b045adb 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -7,6 +7,7 @@ import * as it from "./languages/it.json"; import * as nl from './languages/nl.json'; import * as pt from './languages/pt.json'; import * as sv from "./languages/sv.json"; +import * as es from "./languages/es.json"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { @@ -19,6 +20,7 @@ const languages: any = { nl: nl, pt: pt, sv: sv, + es: es, }; export const CARD_LANGUAGES = [...Object.keys(languages), ''].sort();