-
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 GetCurrentDate (#2853)
- Loading branch information
1 parent
73abb85
commit bb21220
Showing
3 changed files
with
78 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,53 @@ | ||
language: sk | ||
responses: | ||
intents: | ||
HassGetCurrentDate: | ||
default: > | ||
{% set months = { | ||
1: 'Januára', | ||
2: 'Februára', | ||
3: 'Marca', | ||
4: 'Apríla', | ||
5: 'Mája', | ||
6: 'Júna', | ||
7: 'Júla', | ||
8: 'Augusta', | ||
9: 'Septembra', | ||
10: 'Októbra', | ||
11: 'Novembra', | ||
12: 'Decembra', | ||
} %} | ||
{% set ordinal = { | ||
1: '1.', | ||
2: '2.', | ||
3: '3.', | ||
4: '4.', | ||
5: '5.', | ||
6: '6.', | ||
7: '7.', | ||
8: '8.', | ||
9: '9.', | ||
10: '10.', | ||
11: '11.', | ||
12: '12.', | ||
13: '13.', | ||
14: '14.', | ||
15: '15.', | ||
16: '16.', | ||
17: '17.', | ||
18: '18.', | ||
19: '19.', | ||
20: '20.', | ||
21: '21.', | ||
22: '22.', | ||
23: '23.', | ||
24: '24.', | ||
25: '25.', | ||
26: '26.', | ||
27: '27.', | ||
28: '28.', | ||
29: '29.', | ||
30: '30.', | ||
31: '31.', | ||
} %} | ||
Dnes je {{ ordinal[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,8 @@ | ||
language: sk | ||
intents: | ||
HassGetCurrentDate: | ||
data: | ||
- sentences: | ||
- "<what_is> [dne(s|šný)|aktuálny] dátum[ je dnes]" | ||
- "<what_is> [dnes] deň[[ je] dnes]" | ||
- "(ktorého|koľkého) je dnes" |
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,17 @@ | ||
language: sk | ||
tests: | ||
- sentences: | ||
- "aký je dátum" | ||
- "aký je aktuálny dátum" | ||
- "aký je dnešný dátum" | ||
- "aký je dnes dátum" | ||
- "aký dátum je dnes" | ||
- "aký je deň" | ||
- "aký je deň dnes" | ||
- "aký je dnes deň" | ||
- "aký deň je dnes" | ||
- "koľkého je dnes" | ||
- "ktorého je dnes" | ||
intent: | ||
name: HassGetCurrentDate | ||
response: Dnes je 17. Septembra 2013 |