Skip to content

Commit

Permalink
[SK] - add sk GetCurrentTime (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
LubosKadasi authored Jan 9, 2025
1 parent 9a2d173 commit 36b250d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions responses/sk/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: sk
responses:
intents:
HassGetCurrentTime:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour == 1: %}
je {{ slots.time.hour }}:{{ minute_str }}
{% elif slots.time.hour in [2, 3, 4]: %}
sú {{ slots.time.hour }}:{{ minute_str }}
{% else: %}
je {{ slots.time.hour }}:{{ minute_str }}
{% endif %}
7 changes: 7 additions & 0 deletions sentences/sk/homeassistant_HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: sk
intents:
HassGetCurrentTime:
data:
- sentences:
- "<how_many>[ práve][ teraz] hodín"
- "<what_is>[ práve][ teraz] čas"
12 changes: 12 additions & 0 deletions tests/sk/homeassistant_HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: sk
tests:
- sentences:
- "koľko je hodín"
- "koľko je teraz hodín"
- "koľko je práve teraz hodín"
- "aký je čas"
- "aký je teraz čas"
- "aký je práve teraz čas"
intent:
name: HassGetCurrentTime
response: je 1:02

0 comments on commit 36b250d

Please sign in to comment.