diff --git a/README.md b/README.md index 9e72598..d0c480a 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,7 @@ This card supports translations. Please, help to add more translations and impro - 繁體中文 (Traditional Chinese) - Čeština (Czech) - Dutch (Netherlands) +- Español (Spanish) - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.ts b/src/localize.ts index 5d46889..6ec9510 100644 --- a/src/localize.ts +++ b/src/localize.ts @@ -16,6 +16,7 @@ import * as ru from './translations/ru.json'; import * as it from './translations/it.json'; import * as cs from './translations/cs.json'; import * as nl from './translations/nl.json'; +import * as es from './translations/es.json'; type Translations = { [key: string]: { @@ -39,6 +40,7 @@ const languages: Record = { it, cs, nl, + es, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/es.json b/src/translations/es.json new file mode 100644 index 0000000..251d225 --- /dev/null +++ b/src/translations/es.json @@ -0,0 +1,37 @@ +{ + "common": { + "name": "Tarjeta Purificadora", + "description": "La tarjeta purificadora te permite controlar tu purificador inteligente.", + "not_available": "La entidad no está disponible", + "toggle_power": "Encender/Apagar" + }, + "state": { + "on": "Encendido", + "off": "Apagado" + }, + "preset_mode": { + "auto": "Automático", + "silent": "Nocturno", + "favorite": "Manual", + "fan": "Ventilador" + }, + "error": { + "missing_entity": "¡Se requiere especificar la entidad!" + }, + "editor": { + "entity": "Entidad (Requerido)", + "compact_view": "Vista Compacta", + "compact_view_aria_label_on": "Activar vista compacta", + "compact_view_aria_label_off": "Desactivar vista compacta", + "show_name": "Mostrar Nombre", + "show_name_aria_label_on": "Activar mostrar nombre", + "show_name_aria_label_off": "Desactivar mostrar nombre", + "show_state": "Mostrar Estado", + "show_state_aria_label_on": "Activar mostrar estado", + "show_state_aria_label_off": "Desactivar mostrar estado", + "show_toolbar": "Mostrar Barra de Herramientas", + "show_toolbar_aria_label_on": "Activar mostrar barra de herramientas", + "show_toolbar_aria_label_off": "Desactivar mostrar barra de herramientas", + "code_only_note": "Nota: La configuración de acciones y opciones de estadísticas solo está disponible mediante el Editor de Código." + } +} \ No newline at end of file