-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sl] add HassCancelAllTimers (#2818)
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
language: sl | ||
responses: | ||
intents: | ||
HassCancelAllTimers: | ||
default: > | ||
{% if slots.canceled < 1 %} | ||
Noben časovnik ni bil preklican. | ||
{% elif slots.canceled == 1 %} | ||
Preklican je bil 1 časovnik. | ||
{% elif slots.canceled == 2 %} | ||
Preklicana sta bila 2 časovnika. | ||
{% elif slots.canceled | int > 2 and slots.canceled | int < 5 %} | ||
Preklicani so bili {{ slots.canceled }} časovniki. | ||
{% else %} | ||
Preklicanih je bilo {{ slots.canceled }} časovnikov. | ||
{% endif %} | ||
area: > | ||
{% if slots.canceled < 1 %} | ||
Noben časovnik ni bil preklican v območju {{ slots.area }}. | ||
{% elif slots.canceled == 1 %} | ||
Preklican je bil 1 časovnik v območju {{ slots.area }}. | ||
{% elif slots.canceled == 2 %} | ||
Preklicana sta bila 2 časovnika v območju {{ slots.area }}. | ||
{% elif slots.canceled | int > 2 and slots.canceled | int < 5 %} | ||
Preklicani so bili {{ slots.canceled }} časovniki v območju {{ slots.area }}. | ||
{% else %} | ||
Preklicanih je bilo {{ slots.canceled }} časovnikov v območju {{ slots.area }}. | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
language: "sl" | ||
intents: | ||
HassCancelAllTimers: | ||
data: | ||
- sentences: | ||
- "<timer_cancel> vse [moje] (časovnike|timerje|tajmerje|štoparice|odštevalnike)" | ||
- sentences: | ||
- "<timer_cancel> vse [moje] {area} (časovnike|timerje|tajmerje|štoparice|odštevalnike)" | ||
- "<timer_cancel> vse [moje] (časovnike|timerje|tajmerje|štoparice|odštevalnike) [v|na] <area>" | ||
response: area |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "prekliči vse časovnike" | ||
- "ustavi vse moje timerje" | ||
- "prekliči vse štoparice" | ||
intent: | ||
name: HassCancelAllTimers | ||
response: Preklicani so bili 3 časovniki. | ||
|
||
- sentences: | ||
- "prekliči vse časovnike v kuhinji" | ||
intent: | ||
name: HassCancelAllTimers | ||
slots: | ||
area: kuhinji | ||
response: Noben časovnik ni bil preklican v območju kuhinji. |