Skip to content

Commit

Permalink
[NL] Add date and time sentences (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFes authored Aug 6, 2024
1 parent e9fce94 commit 42a5cee
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 0 deletions.
29 changes: 29 additions & 0 deletions responses/nl/HassGetCurrentDate.yaml
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 }}
7 changes: 7 additions & 0 deletions responses/nl/HassGetCurrentTime.yaml
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 }}
8 changes: 8 additions & 0 deletions sentences/nl/homeassistant_HassGetCurrentDate.yaml
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)"
10 changes: 10 additions & 0 deletions sentences/nl/homeassistant_HassGetCurrentTime.yaml
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"
10 changes: 10 additions & 0 deletions tests/nl/homeassistant_HassGetCurrentDate.yaml
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
11 changes: 11 additions & 0 deletions tests/nl/homeassistant_HassGetCurrentTime.yaml
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

0 comments on commit 42a5cee

Please sign in to comment.