-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SK] - add sk GetCurrentTime (#2857)
- Loading branch information
1 parent
9a2d173
commit 36b250d
Showing
3 changed files
with
33 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,14 @@ | ||
language: sk | ||
responses: | ||
intents: | ||
HassGetCurrentTime: | ||
default: > | ||
{% set minute_str = '{0:02d}'.format(slots.time.minute) %} | ||
{% if slots.time.hour == 1: %} | ||
je {{ slots.time.hour }}:{{ minute_str }} | ||
{% elif slots.time.hour in [2, 3, 4]: %} | ||
sú {{ slots.time.hour }}:{{ minute_str }} | ||
{% else: %} | ||
je {{ slots.time.hour }}:{{ minute_str }} | ||
{% 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,7 @@ | ||
language: sk | ||
intents: | ||
HassGetCurrentTime: | ||
data: | ||
- sentences: | ||
- "<how_many>[ práve][ teraz] hodín" | ||
- "<what_is>[ práve][ teraz] čas" |
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,12 @@ | ||
language: sk | ||
tests: | ||
- sentences: | ||
- "koľko je hodín" | ||
- "koľko je teraz hodín" | ||
- "koľko je práve teraz hodín" | ||
- "aký je čas" | ||
- "aký je teraz čas" | ||
- "aký je práve teraz čas" | ||
intent: | ||
name: HassGetCurrentTime | ||
response: je 1:02 |