Skip to content

Commit

Permalink
[SK] - add sk GetCurrentDate (#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
LubosKadasi authored Jan 8, 2025
1 parent 73abb85 commit bb21220
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
53 changes: 53 additions & 0 deletions responses/sk/HassGetCurrentDate.yaml
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 }}
8 changes: 8 additions & 0 deletions sentences/sk/homeassistant_HassGetCurrentDate.yaml
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"
17 changes: 17 additions & 0 deletions tests/sk/homeassistant_HassGetCurrentDate.yaml
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

0 comments on commit bb21220

Please sign in to comment.