-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NL] Add date and time sentences (#2309)
- Loading branch information
Showing
6 changed files
with
75 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: nl | ||
responses: | ||
intents: | ||
HassGetCurrentDate: | ||
default: > | ||
{% set months = { | ||
1: 'januari', | ||
2: 'februari', | ||
3: 'maart', | ||
4: 'april', | ||
5: 'mei', | ||
6: 'juni', | ||
7: 'juli', | ||
8: 'augustus', | ||
9: 'september', | ||
10: 'oktober', | ||
11: 'november', | ||
12: 'december', | ||
} %} | ||
{% set weekday = [ | ||
'maandag', | ||
'dinsdag', | ||
'woensdag', | ||
'donderdag', | ||
'vrijdag', | ||
'zaterdag', | ||
'zondag' | ||
] %} | ||
Het is {{ weekday[slots.date.weekday()] }} {{ slots.date.day }} {{ months[slots.date.month] }} {{ slots.date.year }} |
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: nl | ||
responses: | ||
intents: | ||
HassGetCurrentTime: | ||
default: > | ||
{% set minute_str = '{0:02d}'.format(slots.time.minute) %} | ||
Het is {{ slots.time.hour }}:{{ minute_str }} |
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,8 @@ | ||
language: nl | ||
intents: | ||
HassGetCurrentDate: | ||
data: | ||
- sentences: | ||
- "welke (dag|datum) is het[ vandaag| nu]" | ||
- "wat is de [huidige ](dag|datum)" | ||
- "(vertel me|geef me) de [huidige ](datum|dag)" |
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,10 @@ | ||
language: nl | ||
intents: | ||
HassGetCurrentTime: | ||
data: | ||
- sentences: | ||
- "hoe laat is het[ nu]" | ||
- "hoe laat leven we[ nu]" | ||
- "wat is de [huidige ]tijd" | ||
- "wat is (de tijd;nu)" | ||
- "(vertel me|geef me) de [huidige ]tijd" |
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,10 @@ | ||
language: nl | ||
tests: | ||
- sentences: | ||
- "wat is de datum" | ||
- "welke dag is het vandaag" | ||
- "welke datum is het nu" | ||
- "geef me de huidige datum" | ||
intent: | ||
name: HassGetCurrentDate | ||
response: Het is dinsdag 17 september 2013 |
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: nl | ||
tests: | ||
- sentences: | ||
- "wat is de tijd" | ||
- "hoe laat is het" | ||
- "wat is de tijd nu" | ||
- "vertel me de huidige tijd" | ||
- "hoe laat leven we" | ||
intent: | ||
name: HassGetCurrentTime | ||
response: Het is 1:02 |