Skip to content

Commit

Permalink
[ES] Updating translations (#2466)
Browse files Browse the repository at this point in the history
* [ES] Updating translations
  • Loading branch information
davefx authored Nov 6, 2024
1 parent 7df2e44 commit a713efc
Show file tree
Hide file tree
Showing 23 changed files with 211 additions and 60 deletions.
9 changes: 9 additions & 0 deletions responses/es/HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
responses:
intents:
HassRespond:
hello: "Saludos desde Home Assistant."
listening: "No, sólo grabo cuando escucho la palabra de activación."
data: "Tus datos se envían al servidor de Home Assistant."
commands: "Para averiguar lo que puedes preguntar, visita H.A. punto I.O. barra voice."
creator: "Fui creado por la maravillosa comunidad de Home Assistant, conformada por multitud de entusiastas de todo el mundo."
22 changes: 21 additions & 1 deletion responses/es/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ language: es
responses:
intents:
HassTurnOff:
default: "{{ slots.name }} se ha desconectado"
default: >-
{% set translations = {
"button": "el botón",
"camera": "la cámara",
"input_button": "el botón",
"alarm_control_panel": "la alarma",
"automation": "la automatización",
"fan": "el ventilador",
"climate": "el termostato",
"humidifier": "el humidificador",
"input_boolean": "el interruptor",
"siren": "la sirena",
"water_heater": "el calentador de agua",
"light": "la luz",
"switch": "el interruptor",
"remote": "el control remoto",
"vacuum": "la aspiradora",
"media_player": "el reproductor",
"lawn_mower": "el cortacésped"
} %}
Se ha apagado {{ translations.get(state.domain) }}
light: "{{ slots.name }} se ha apagado"
lights_area: "Luces apagadas"
lights_floor: "Luces apagadas"
Expand Down
22 changes: 21 additions & 1 deletion responses/es/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ language: es
responses:
intents:
HassTurnOn:
default: "{{ slots.name }} se ha activado"
default: >-
{% set translations = {
"button": "el botón",
"camera": "la cámara",
"input_button": "el botón",
"alarm_control_panel": "la alarma",
"automation": "la automatización",
"fan": "el ventilador",
"climate": "el termostato",
"humidifier": "el humidificador",
"input_boolean": "el interruptor",
"siren": "la sirena",
"water_heater": "el calentador de agua",
"light": "la luz",
"switch": "el interruptor",
"remote": "el control remoto",
"vacuum": "la aspiradora",
"media_player": "el reproductor",
"lawn_mower": "el cortacésped"
} %}
Se ha activado {{ translations.get(state.domain) }}
light: "{{ slots.name }} se ha encendido"
lights_area: "Luces encendidas"
lights_floor: "Luces encendidas"
Expand Down
20 changes: 11 additions & 9 deletions sentences/es/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,16 +531,18 @@ expansion_rules:
anterior: "(anterior|últim(o|a))"
añadir: "(añad(a|e|ir|í)|apunt[a|e|ar|á]|pon[ga|er|é]|sum(e|a|ar|á))"
apaga: "(apag(a|ue|ar|á)|desconect(a|e|ar|á)|desactiv(a|e|ar|á))"
area: "[en|del|de] [el|la] {area}"
area: "[en |del |de ][el |la ]{area}"
area_planta: "(<area>|<planta>)"
baja: "(baj(a|e|ar|á)|redu(ce|zca|cir|cí)|decrement(a|e|ar|á)|disminu(ye|ya|ir|í))"
brightness: "{brightness} [%|porcien[to]|por cien[to]]"
cancela: "cancel(a[r]|á|e|ación)"
cambia: "(cambi(a[r]|á|e|o)|(muev[a|e]|mov[er|é]))"
cerrables: "[de ][(el|la|l(a|o)s|mi[s]) ](cancela[s]|cierre[s]|cerradura[s]|cerrojo[s]|llave[s]|pestillo[s]|puerta[s][ de garaje]|port(ón|ones)|ventana[s])"
cierra: "(cierr(a|e)|cerr(ar|á)|<baja>)"
continúa: "(contin(úa|úe|uar|uá)|(sig(ue|a)|segu(ir|í))|(reactiv(a|e|ar|á)))"
crea: "(cre(a|e|ar|á))"
cual_es: "(cu(a|á)l es [el|la]|cu(a|á)les son [los|las]|c(o|ó)mo (va|está|marcha)[n] [el|la|los|las])"
de_aqui: "[ (de|en)] (aquí|acá|(el|la) <habitación>)"
cual_es: "(cu(a|á)l es [el |la ]|cu(a|á)les son [los |las ]|c(o|ó)mo (va|está|marcha|se encuentra)[n] [el |la |los |las ])"
de_aqui: "[(de|en) ](aquí|acá|(el|la) <habitación>)"
dime: "(sab(es|é)|dime|dec(ir|í|id)[me]|ind(i|í)(ca|que|car|cá)[me])"
dime_si: "<dime> si"
donde_se_encuentra: "dónde <se_encuentra>"
Expand All @@ -551,23 +553,23 @@ expansion_rules:
establece_abre_cierra: "(<establece>|<abre>|<cierra>)"
establece_sube_baja: "(<establece>|<enciende>|<sube>|<baja>)"
inicia: "(inici(a|e|ar|á)|com[i]en(za|ce|zar|zá)|emp[i]e(za|ce|zar|zá))"
luces: "[el|la|l(a|o)s] (luz|luces|lámpara[s]|bombill(a|o)[s]|ampolleta[s]|luminaria[s]|lamparilla[s]|foco[s]|interruptor[es]|llave[s][ de la luz])"
mide: "[que] ([es|está] (mid(e|ie)|medi|indica|marca)[ndo|d(a|o)]|tiene|hay) [por|en]"
name: "[el|la|los|las] {name}"
luces: "[el |la |l(a|o)s ](luz|luces|lámpara[s]|bombill(a|o)[s]|ampolleta[s]|luminaria[s]|lamparilla[s]|foco[s]|interruptor[es]|llave[s][ de la luz])"
mide: "[que ]([es|está] (mid(e|ie)|medi|indica|marca)[ndo|d(a|o)]|tiene|hay) [por|en]"
name: "[el |la |los |las ]{name}"
otra_vez: "(otra vez|de nuevo|una vez más)"
pausa: "(paus(a|ar|e|á)|<para>)"
para: "(par(a|ar|e|á))|det(én|ener|enga|ené)"
planta: "[en|del|de] [el|la] ([planta|piso] {floor}|{floor} (planta|piso))"
planta: "[en |del |de ][el |la ][planta |piso ]{floor}[ planta| piso]"
pista: "[el |la ](pista|canción|medio|vídeo|video|elemento|tema)"
posición: "{position}[ ][%|por[ ]cien[to]]"
puerta: "[el|la] (puerta|portón|cancela|verja|reja|compuerta|portillo)"
puerta: "[el |la ](puerta|portón|cancela|verja|reja|compuerta|portillo)"
quita: "quit(a|e|ar|á)"
reproduce: "(reprodu(ce|cir|cí|zca)|escuchar|o(i|í)r|ver|visualizar)"
resta: "(rest(a|e|ar|á))"
salta: "(salt(a|e|ar|á))"
se_encuentra: "(se (encuentra|localiza|ubica)|está|mora)"
sube: "(sub(a|e|ir|í)|levant(a|e|ar|á)|aument(a|e|ar|á)|increment(a|e|ar|á))"
temp: "[el|la] (temperatura|calor|grados)"
temp: "[el |la ](temperatura|calor|grados)"
temperature: "{temperature}[([ ]°[ ][{temperature_unit}])|( {temperature_unit})|( grados[ {temperature_unit}])]"
temporizador: "[el |la ](temporizador|cuenta atrás)"
temporizadores: "[el |la |l(o|a)s ](temporizador[es]|cuenta[s] atrás)"
Expand Down
4 changes: 4 additions & 0 deletions sentences/es/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ intents:
- "[a] (cuánta|cuánto|cuántos|qué) <temp> (hace|hacen|hay|está|están|estamos) ([<ahora>] <area>|<area> <ahora>)"
- "cuál es <temp> ([<ahora>] de[l] <name>|de[l] <name> <ahora>)"
- "[a] (cuánta|cuánto|cuántos|qué) <temp> está ([<ahora>] <name>|<name> <ahora>)"
- sentences:
- "hace (frío|calor) [[<ahora>] <area>|<area> <ahora>]"
requires_context:
domain: "climate"
8 changes: 8 additions & 0 deletions sentences/es/cover_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ intents:
slots:
domain: cover

- sentences:
- "<cual_es> [(estado|situación) de ] <name> [<area>|<planta>]"
response: one
requires_context:
domain: cover
slots:
domain: cover

- sentences:
- "(hay|está[n]) [(algún|alguna|algunos|algunas)] {cover_classes:device_class} {cover_states:state}[ <area>| <planta>]"
- "(hay|está[n]) [(algún|alguna|algunos|algunas)] {cover_classes:device_class}[ <area>| <planta>] {cover_states:state}"
Expand Down
2 changes: 1 addition & 1 deletion sentences/es/cover_HassSetPosition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intents:
HassSetPosition:
data:
- sentences:
- "<establece_abre_cierra> [[la ]posición [de[l]]] <name> a[l] <posición>"
- "<establece_abre_cierra> [[la ]posición [de[l]] ]<name> a[l] <posición>"
requires_context:
domain: cover
slots:
Expand Down
2 changes: 1 addition & 1 deletion sentences/es/cover_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ intents:
response: cover_device_class

- sentences:
- <cierra> [ el | la | los | las ] {cover_classes:device_class}[<de_aqui>]
- <cierra> [ el | la | los | las ] {cover_classes:device_class} [<de_aqui>]
slots:
domain: cover
response: cover_device_class
Expand Down
4 changes: 2 additions & 2 deletions sentences/es/fan_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ intents:
name: "all"

- sentences:
- "<apaga> [todos] [el|los] (ventilador[es]|abanico[s])<de_aqui>"
- "<apaga> [el|los] (ventilador[es]|abanico[s])[<de_aqui>]"
- "<apaga> [todos] [el|los] (ventilador[es]|abanico[s]) <de_aqui>"
- "<apaga> [el|los] (ventilador[es]|abanico[s]) [<de_aqui>]"
response: "fans_area"
slots:
domain: "fan"
Expand Down
2 changes: 1 addition & 1 deletion sentences/es/fan_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ intents:
response: fans_area

- sentences:
- "<enciende> [todos] [los|el] (ventilador[es]|abanico[s])[<de_aqui>]"
- "<enciende> [todos] [los|el] (ventilador[es]|abanico[s]) [<de_aqui>]"
response: fans_area
slots:
domain: "fan"
Expand Down
8 changes: 4 additions & 4 deletions sentences/es/homeassistant_HassCancelTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ intents:
HassCancelTimer:
data:
- sentences:
- "<timer_cancel>[ mi] <temporizador>"
- "<timer_cancel>[ mi] <temporizador> [de |para ]<timer_start>"
- "<timer_cancel>[ mi] <temporizador> <area>"
- "<timer_cancel>[ mi] <temporizador>[ de| con nombre| llamad(o|a)| denominad(o|a)] {timer_name:name}"
- "<timer_cancel> [mi] <temporizador>"
- "<timer_cancel> [mi] <temporizador> [de |para ]<timer_start>"
- "<timer_cancel> [mi] <temporizador> <area>"
- "<timer_cancel> [mi] <temporizador>[ de| con nombre| llamad(o|a)| denominad(o|a)] {timer_name:name}"
23 changes: 23 additions & 0 deletions sentences/es/homeassistant_HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: "es"
intents:
HassRespond:
data:
- sentences:
- "(hola) [home assistant]"
response: hello

- sentences:
- "(escuch(a|as|á)|(grab(a|as|á))|estás (escuchando|grabando) siempre)"
response: listening

- sentences:
- "dónde (van|se envían) (mis|los) datos"
response: data

- sentences:
- "qué (puedo|se puede) (decir|preguntar)"
response: commands

- sentences:
- "quién te (hizo|creó|ha hecho|ha creado)"
response: creator
22 changes: 8 additions & 14 deletions sentences/es/light_HassLightSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ intents:
domain: light

- sentences:
- <establece_sube_baja> [el] brillo <area> [a|al] <brightness>
- <establece_sube_baja> <area> [a|al] brillo <brightness>
- <establece_sube_baja> <area> [a|al] <brightness>
slots:
name: "all"
- <establece_sube_baja> [el] brillo <area_planta> [a|al] <brightness>
- <establece_sube_baja> <area_planta> [a|al] brillo <brightness>
- <establece_sube_baja> <area_planta> [a|al] <brightness>
response: "brightness"

- sentences:
Expand All @@ -37,11 +35,9 @@ intents:
response: "brightness"

- sentences:
- "[<establece_sube_baja>] [el] brillo <area> [a[l]] {brightness_level:brightness}"
- "[<establece_sube_baja>] <area> [a[l]|el] brillo [a[l]] {brightness_level:brightness}"
- "[<establece_sube_baja>] <area> [a[l]|el] {brightness_level:brightness} [de] brillo"
slots:
name: "all"
- "[<establece_sube_baja>] [el] brillo <area_planta> [a[l]] {brightness_level:brightness}"
- "[<establece_sube_baja>] <area_planta> [a[l]|el] brillo [a[l]] {brightness_level:brightness}"
- "[<establece_sube_baja>] <area_planta> [a[l]|el] {brightness_level:brightness} [de] brillo"
response: "brightness"

- sentences:
Expand All @@ -61,10 +57,8 @@ intents:
response: "color"

- sentences:
- <establece> [[el] color de] (<area> | [todas] las luces <area>) [a | al | en] {color}
- <establece> (<area> | [todas] las luces <area>) [a | al | en] [color] {color}
slots:
name: "all"
- <establece> [[el] color de] (<area_planta> | [todas] las luces <area>) [a | al | en] {color}
- <establece> (<area> | [todas] las luces <area_planta>) [a | al | en] [color] {color}
response: "color"

- sentences:
Expand Down
18 changes: 10 additions & 8 deletions sentences/es/lock_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,31 @@ intents:
domain: lock

- sentences:
- "(está[n]|hay) alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s] {lock_states:state}[ <area>]"
- "(está[n]|hay) {lock_states:state} alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s][ <area>]"
- "(está[n]|hay) alg(ún|uno|una)[s] <cerrables> {lock_states:state}[ <area>]"
- "(está[n]|hay) {lock_states:state} alg(ún|uno|una)[s] <cerrables>[ <area>]"
response: any
slots:
domain: lock

- sentences:
- "están tod(o|a)s l(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) {lock_states:state}[ <area>]"
- "están todas l(o|a)s (puertas|ventanas) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
- "están tod(o|a)s <cerrables> {lock_states:state}[ <area>]"
- "están {lock_states:state} tod(o|a)s <cerrables>[ <area>]"
- "están todas l(o|a)s <cerrables> {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
- "están {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave) tod(o|a)s <cerrables>[ <area>]"
response: all
slots:
domain: lock

- sentences:
- "(qué|cual[es]) (cierre|cerradura|pestillo|cerrojo|llave)[s] está[n] {lock_states:state}[ <area>]"
- "(qué|cual[es]) (puerta|ventana)[s] está[n] {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
- "(qué|cual[es]) <cerrables> (está[n]|hay) {lock_states:state}[ <area>]"
- "(qué|cual[es]) <cerrables> (está[n]|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
response: which
slots:
domain: lock

- sentences:
- "cuánt(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) (están|hay) {lock_states:state}[ <area>]"
- "cuánt(o|a)s (puertas|ventanas) (están|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
- "cuánt(o|a)s <cerrables> (están|hay) {lock_states:state}[ <area>]"
- "cuánt(o|a)s <cerrables> (están|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
response: how_many
slots:
domain: lock
4 changes: 2 additions & 2 deletions sentences/es/lock_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ intents:
response: lock

- sentences:
- "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|ventana)[s]] <area>"
- "quitar [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|venana)[s]] <area>"
- "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [[de ]<cerrables> ]<area>"
- "quitar [tod(a|o)s] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [[de ]<cerrables> ]<area>"
slots:
domain: "lock"
name: "all"
Expand Down
6 changes: 2 additions & 4 deletions sentences/es/lock_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ intents:
response: lock

- sentences:
- "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres] <area>"
- "cerrar con (llave|cerrojo|pestillo|cerradura|candado|cierre) [tod(o|a)s] [los|las] [puertas|ventanas] <area>"
- "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] en [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres|puertas|ventanas] <area>"
- "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s ][los |las ]<cerrables> <area>"
- "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] (en|de) [tod(o|a)s] <cerrables> <area>"
- "echar [tod(o|a)s] [los|las] (llaves|cerrojos|pestillos|cerraduras|candados|cierres) <area>"
slots:
domain: "lock"
name: "all"
response: lock_area
4 changes: 2 additions & 2 deletions tests/es/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ entities:
attributes:
device_class: battery_charging

- name: "Sensor CO2"
id: "binary_sensor.co2"
- name: "Sensor CO"
id: "binary_sensor.co"
area: "id_cocina"
state:
in: "despejado"
Expand Down
Loading

0 comments on commit a713efc

Please sign in to comment.