diff --git a/responses/nl/HassGetCurrentDate.yaml b/responses/nl/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..a7a2e1fe32 --- /dev/null +++ b/responses/nl/HassGetCurrentDate.yaml @@ -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 }} diff --git a/responses/nl/HassGetCurrentTime.yaml b/responses/nl/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..95ca601bc5 --- /dev/null +++ b/responses/nl/HassGetCurrentTime.yaml @@ -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 }} diff --git a/sentences/nl/homeassistant_HassGetCurrentDate.yaml b/sentences/nl/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..75f52ec8e8 --- /dev/null +++ b/sentences/nl/homeassistant_HassGetCurrentDate.yaml @@ -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)" diff --git a/sentences/nl/homeassistant_HassGetCurrentTime.yaml b/sentences/nl/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..e9d7f8bd2e --- /dev/null +++ b/sentences/nl/homeassistant_HassGetCurrentTime.yaml @@ -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" diff --git a/tests/nl/homeassistant_HassGetCurrentDate.yaml b/tests/nl/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..21f6c92cb2 --- /dev/null +++ b/tests/nl/homeassistant_HassGetCurrentDate.yaml @@ -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 diff --git a/tests/nl/homeassistant_HassGetCurrentTime.yaml b/tests/nl/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..755736b9cd --- /dev/null +++ b/tests/nl/homeassistant_HassGetCurrentTime.yaml @@ -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