diff --git a/README.md b/README.md index 9c998ba..9eb3f54 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ The following languages are supported: | Hungarian | `hu` | v1.2.1 | [@erelke](https://github.com/erelke) | | Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) | | Portuguese| `pt` | v1.2.0 | [@ViPeR5000](https://github.com/viper5000) | +| Spanish | `es` | v1.2.2 | [@cvc90](https://github.com/cvc90) | | Swedish | `sv` | v1.2.1 | [@el97](https://github.com/el97) | #### 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..4c2c4f6 --- /dev/null +++ b/src/localize/languages/es.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versión", + "invalid_configuration": "Configuración no válida", + "show_warning": "Mostrar advertencia", + "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" + } +} diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 15c5f0a..aec9006 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -1,6 +1,7 @@ import * as cs from "./languages/cs.json"; import * as de from './languages/de.json'; import * as en from './languages/en.json'; +import * as es from "./languages/es.json"; import * as fr from './languages/fr.json'; import * as hu from './languages/hu.json'; import * as it from "./languages/it.json"; @@ -13,6 +14,7 @@ const languages: any = { cs: cs, de: de, en: en, + es: es, fr: fr, hu: hu, it: it,