diff --git a/README.md b/README.md index b581654..89caff6 100644 --- a/README.md +++ b/README.md @@ -719,11 +719,12 @@ This card supports translations. Please, help to add more translations and impro - French - German - Hebrew +- Korean - Nederlands (Dutch) - Polish (polski) - Portuguese - Russian -- Korean +- Spanish - [_Your language?_][add-translation] ## Credits diff --git a/src/localize/languages/es.json b/src/localize/languages/es.json new file mode 100644 index 0000000..818ef8e --- /dev/null +++ b/src/localize/languages/es.json @@ -0,0 +1,62 @@ +{ + "common": { + "version": "v", + "invalid_configuration": "Configuración Inválida", + "show_warning": "Mostrar Aviso", + "show_error": "Mostrar Error" + }, + "tabs": { + "general": { + "title": "General", + "entity": "Entidad (Requerida)", + "name": "Nombre (Opcional)", + "show_name": "¿Mostrar nombre?", + "show_state": "¿Mostrar estado?", + "compact": "¿Compacto?" + }, + "icon": { + "title": "Icono", + "icon": "Icono (Opcional)", + "show_icon": "¿Mostrar icono?", + "use_state_color": "¿Usar color del estado?", + "tap_action": "Acción al pulsar" + }, + "slider": { + "title": "Control deslizante", + "direction": "Dirección", + "background": "Fondo", + "use_brightness": "¿Usar brillo?", + "show_track": "¿Mostrar senda?", + "toggle_on_click": "Comportamiento como interruptor (Deshabilitar deslizamiento)", + "force_square": "¿Forzar cuadrado?" + }, + "action_button": { + "title": "Acción del botón", + "mode": "Modo", + "icon": "Icono", + "show_button": "¿Mostrar botón?", + "show_spinner": "¿Mostrar transición?", + "tap_action": "Acción al pulsar" + } + }, + "state": { + "off": "Apagado", + "on": "Encendido" + }, + "direction": { + "left-right": "De izquierda a derecha", + "top-bottom": "De arriba abajo", + "bottom-top": "De abajo arriba" + }, + "background": { + "striped": "Líneas", + "gradient": "Degradado", + "solid": "Sólido", + "triangle": "Triángulo", + "custom": "Personalizado" + }, + "mode": { + "toggle": "Conmutar", + "custom": "Personalizado" + } +} diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 6a2ee28..a005c81 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -1,4 +1,5 @@ import * as en from './languages/en.json'; +import * as es from './languages/es.json'; import * as de from './languages/de.json'; import * as fr from './languages/fr.json'; import * as he from './languages/he.json'; @@ -13,6 +14,7 @@ import * as ko from './languages/ko.json'; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { en: en, + es: es, de: de, fr: fr, he: he,