Skip to content

Commit

Permalink
[IT] Cleanup in _common.yaml (#2870)
Browse files Browse the repository at this point in the history
* [IT] Improve 'cancel all timers' to prepare for _common.yaml cleanup

* [IT] Cleaned '<the>' in _common.yaml, removing prepositions covered by '<in>' and '<to>'

* [IT] Removed redundant '<the>' in _common.yaml

* [IT] Align 'no_area' error to other errors
  • Loading branch information
lucab-91 authored Jan 14, 2025
1 parent 88105c5 commit c61c0f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sentences/it/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ responses:
handle_error: "Si è verificato un errore inatteso durante l'elaborazione"

# Errori per quando un utente non ha effettuato l'accesso
no_area: "Non conosco nessuna area chiamata {{ area }}"
no_area: "Mi dispiace, non conosco nessuna area chiamata {{ area }}"
no_floor: "Mi dispiace, non conosco nessun piano chiamato {{ floor }}"
no_domain: "Mi dispiace, non conosco nessun dispositivo appartenente al dominio {{ domain }}"
no_domain_in_area: "Mi dispiace, nell'area {{ area }} non conosco nessun dispositivo appartenente al dominio {{ domain }}"
Expand Down Expand Up @@ -390,7 +390,7 @@ lists:

expansion_rules:
# Parti del discorso
the: "(l(o |a |e )|i[l] |gli |l(`|’|')[ ]|in |a |(a|ne)(l |llo |lla |lle |ll(`|’|')[ ]|gli ))"
the: "(l(o |a |e )|i[l] |gli |l(`|’|')[ ])"
in: "(all'interno |dentro |in | ne[l |i |gli |llo |lla |lle |ll(`|’|')[ ]])"
"on": "su[l|lla]"
of: "(de[l |llo |lla |lle |ll(`|’|')[ ]|i |gli ]|di )"
Expand Down Expand Up @@ -432,8 +432,8 @@ expansion_rules:
# Posti, aree e luoghi
in_here: "(qu(a|i)|in questa (stanza|camera))"
home: "(casa|appartamento)"
area: "[<the>][area ]{area}"
floor: "[<the>][floor ]{floor}"
area: "[area ]{area}"
floor: "[floor ]{floor}"
everywhere: "(dappertutto|ovunque|[in] tutt(a|o) [<the>]<home>)"

# Altro
Expand Down
4 changes: 2 additions & 2 deletions sentences/it/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ intents:
- "<timer_cancel> <all> [<the>] [miei] timer"
- "<timer_cancel> i [miei] timer"
- sentences:
- "<timer_cancel> <all> [<the>] [miei] timer <area>"
- "<timer_cancel> i [miei] timer <area>"
- "<timer_cancel> <all> [<the>] [miei] timer [<in>] <area>"
- "<timer_cancel> i [miei] timer [<in>] <area>"
response: area

0 comments on commit c61c0f0

Please sign in to comment.