Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added HassShoppingListAddItem intent for italian language #2042

Merged
merged 3 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions responses/it/HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: "it"
responses:
intents:
HassShoppingListAddItem:
item_added: "{{ slots.item }} aggiunto alla lista della spesa"
3 changes: 3 additions & 0 deletions sentences/it/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ lists:
- in: "apert(o|a|e|i)"
out: "unlocked"

shopping_list_item:
wildcard: true

# binary_sensor
bs_battery_states:
values:
Expand Down
11 changes: 11 additions & 0 deletions sentences/it/shopping_list_HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: "it"
intents:
HassShoppingListAddItem:
data:
- sentences:
- aggiungi <item>[ alla <my_list>]
- metti <item> nella <my_list>
response: item_added
expansion_rules:
my_list: "[mia ]lista[ della spesa]"
item: "{shopping_list_item:item}"
21 changes: 21 additions & 0 deletions tests/it/shopping_list_HassShoppingListAddItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: it
tests:
- sentences:
- aggiungi mele alla lista della spesa
- aggiungi mele alla mia lista della spesa
- aggiungi mele alla lista
- metti mele nella lista
- metti mele nella mia lista
- metti mele nella lista della spesa
intent:
name: HassShoppingListAddItem
slots:
item: "mele "
response: mele aggiunto alla lista della spesa
- sentences:
- aggiungi mele
intent:
name: HassShoppingListAddItem
slots:
item: "mele"
response: mele aggiunto alla lista della spesa