From 5df2830405745b9263aaffae59a25ad43628ced2 Mon Sep 17 00:00:00 2001 From: AtomikWiWa <30299472+AtomikWiWa@users.noreply.github.com> Date: Sat, 14 May 2022 10:40:20 +0200 Subject: [PATCH 1/3] Add Spanish translation Add Spanish translation --- src/translations/es.json | 149 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 src/translations/es.json diff --git a/src/translations/es.json b/src/translations/es.json new file mode 100644 index 000000000..8f725f2d9 --- /dev/null +++ b/src/translations/es.json @@ -0,0 +1,149 @@ +{ + "editor": { + "form": { + "color_picker": { + "values": { + "default": "Color predeterminado" + } + }, + "info_picker": { + "values": { + "default": "Informacion predeterminada", + "name": "Nombre", + "state": "Estado", + "last-changed": "Último cambio", + "last-updated": "Última actualización", + "none": "Ninguno" + } + }, + "layout_picker": { + "values": { + "default": "Diseño predeterminado", + "vertical": "Diseño vertical", + "horizontal": "Diseño Horizontal" + } + }, + "alignment_picker": { + "values": { + "default": "Alineación predeterminada", + "start": "Inicio", + "end": "Final", + "center": "Centrado", + "justify": "Justificado" + } + } + }, + "card": { + "generic": { + "hide_name": "¿Ocultar nombre?", + "hide_state": "¿Ocultar estado?", + "hide_icon": "¿Ocultar icono?", + "icon_color": "Color de icono", + "layout": "Diseño", + "fill_container": "Rellenar", + "primary_info": "Información primaria", + "secondary_info": "Información secundaria", + "content_info": "Contenido", + "use_entity_picture": "¿Usar imagen de entidad?", + "collapsible_controls": "Contraer controles cuando está apagado" + }, + "light": { + "show_brightness_control": "¿Controlar brillo?", + "use_light_color": "Usar color de la luz", + "show_color_temp_control": "¿Controlar temperatura del color?", + "show_color_control": "¿Controlar Color?", + "incompatible_controls": "Es posible que algunos controles no se muestren si su luz no es compatible con la función." + }, + "fan": { + "icon_animation": "¿Icono animado cuando está activo?", + "show_percentage_control": "¿Controlar porcentaje?", + "show_oscillate_control": "¿Controlar oscilación?" + }, + "cover": { + "show_buttons_control": "¿Botones de control?", + "show_position_control": "¿Control de posición?" + }, + "alarm_control_panel": { + "show_keypad": "Mostrar teclado" + }, + "template": { + "primary": "Información primaria", + "secondary": "Información secundaria", + "multiline_secondary": "¿Secundaria multilínea?", + "entity_extra": "Utilizado en plantillas y acciones.", + "content": "Contenido" + }, + "title": { + "title": "Título", + "subtitle": "Subtítulo" + }, + "chips": { + "alignment": "Alineación" + }, + "weather": { + "show_conditions": "¿Condiciones?", + "show_temperature": "¿Temperatura?" + }, + "update": { + "show_buttons_control": "¿Botones de control?" + }, + "vacuum": { + "commands": "Comandos" + }, + "media-player": { + "use_media_info": "Usar información multimedia", + "use_media_artwork": "Usar ilustraciones multimedia", + "show_volume_level": "Mostrar nivel de volumen", + "media_controls": "Controles multimedia", + "media_controls_list": { + "on_off": "Encender/apagar", + "shuffle": "Aleatoria", + "previous": "Pista anterior", + "play_pause_stop": "Play/pausa/parar", + "next": "Pista siguiente", + "repeat": "Modo de repetición" + }, + "volume_controls": "Controles de volumen", + "volume_controls_list": { + "volume_buttons": "Botones de volumen", + "volume_set": "Nivel de volumen", + "volume_mute": "Silenciar" + } + }, + "lock": { + "lock": "Bloquear", + "unlock": "Desbloquear", + "open": "Abrir" + }, + "humidifier": { + "show_target_humidity_control": "¿Controlar humedad?" + } + }, + "chip": { + "sub_element_editor": { + "title": "Editor de chip" + }, + "conditional": { + "chip": "Chip" + }, + "chip-picker": { + "chips": "Chips", + "add": "Añadir chip", + "edit": "Editar", + "clear": "Limpiar", + "select": "Seleccionar chip", + "types": { + "action": "Acción", + "alarm-control-panel": "Alarma", + "back": "Volver", + "conditional": "Condicional", + "entity": "Entidad", + "light": "Liz", + "menu": "Menu", + "template": "Plantilla", + "weather": "Clima" + } + } + } + } +} From 468d09755a076eb5525e35a9ab89589c70f45ed4 Mon Sep 17 00:00:00 2001 From: AtomikWiWa <30299472+AtomikWiWa@users.noreply.github.com> Date: Sun, 15 May 2022 19:23:39 +0200 Subject: [PATCH 2/3] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Óscar Fernández Díaz --- src/translations/es.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translations/es.json b/src/translations/es.json index 8f725f2d9..6534a7d70 100644 --- a/src/translations/es.json +++ b/src/translations/es.json @@ -138,8 +138,8 @@ "back": "Volver", "conditional": "Condicional", "entity": "Entidad", - "light": "Liz", - "menu": "Menu", + "light": "Luz", + "menu": "Menú", "template": "Plantilla", "weather": "Clima" } From 42fff29bfc27e35fc783dd5369aef9d107c71482 Mon Sep 17 00:00:00 2001 From: AtomikWiWa <30299472+AtomikWiWa@users.noreply.github.com> Date: Sun, 15 May 2022 19:34:07 +0200 Subject: [PATCH 3/3] Add spanish --- src/localize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/localize.ts b/src/localize.ts index 51abfbbfc..e57a7916d 100644 --- a/src/localize.ts +++ b/src/localize.ts @@ -5,6 +5,7 @@ import { HomeAssistant } from "custom-card-helpers"; import * as de from "./translations/de.json"; import * as el from "./translations/el.json"; import * as en from "./translations/en.json"; +import * as es from "./translations/en.json"; import * as fr from "./translations/fr.json"; import * as it from "./translations/it.json"; import * as nb from "./translations/nb.json"; @@ -20,6 +21,7 @@ const languages: Record = { de, el, en, + es, fr, it, nb,