-
Notifications
You must be signed in to change notification settings - Fork 625
[BG] Add HassGetDate and HassGetTime #2432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
87e4cd8
b4356af
ca9b55b
8c8294c
f60e6e2
39acbcd
3d61b5c
de61114
ae0795c
f71ee90
d7a7408
2f93c97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
language: bg | ||
responses: | ||
intents: | ||
HassGetCurrentDate: | ||
default: > | ||
{% set months = { | ||
1: 'Януари', | ||
2: 'Февруари', | ||
3: 'Март', | ||
4: 'Април', | ||
5: 'Май', | ||
6: 'Юни', | ||
7: 'Юли', | ||
8: 'Август', | ||
9: 'Септември', | ||
10: 'Октомври', | ||
11: 'Ноември', | ||
12: 'Декември', | ||
} %} | ||
{% set ordinal = { | ||
1: 'първи', | ||
2: 'втори', | ||
3: 'трети', | ||
4: 'четвърти', | ||
5: 'пети', | ||
6: 'шести', | ||
7: 'седми', | ||
8: 'осми', | ||
9: 'девети', | ||
10: 'десети', | ||
11: 'единайсети', | ||
12: 'дванайсети', | ||
13: 'тринайсети', | ||
14: 'четиринайсети', | ||
15: 'петнайсети', | ||
16: 'шеснтнайсети', | ||
17: 'седемнайсети', | ||
18: 'осемнайсети', | ||
19: 'деветнайсети', | ||
20: 'двайсети', | ||
21: 'двайсет и първи', | ||
22: 'двайсет и втори', | ||
23: 'двайсет и трети', | ||
24: 'двайсет и четвърти', | ||
25: 'двайсет и пети', | ||
26: 'двайсет и шести', | ||
27: 'двайсет и седми', | ||
28: 'двайсет и осми', | ||
29: 'двайсет и девети', | ||
30: 'трийсети', | ||
31: 'трийсет и първи', | ||
} %} | ||
{{ ordinal[slots.date.day] }} {{ months[slots.date.month] }} {{ slots.date.year }}-та |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: bg | ||
responses: | ||
intents: | ||
HassGetCurrentTime: | ||
default: > | ||
{% set hour_str = '{0:02d}'.format(slots.time.hour) %} | ||
{% set minute_str = '{0:02d}'.format(slots.time.minute) %} | ||
{{ hour_str }} часа и {{ minute_str }} минути | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,7 @@ | ||||||||||||||||||||
language: bg | ||||||||||||||||||||
intents: | ||||||||||||||||||||
HassGetCurrentDate: | ||||||||||||||||||||
data: | ||||||||||||||||||||
- sentences: | ||||||||||||||||||||
- "[кажи ми] [коя е|каква е] [днешната] дата[та]" | ||||||||||||||||||||
- "[кажи ми] [коя|каква] дата е [днес]" | ||||||||||||||||||||
|
- sentences: | |
- "[кажи ми] [коя е|каква е] [днешната] дата[та]" | |
- "[кажи ми] [коя|каква] дата е [днес]" | |
- sentences: | |
- "[кажи ми] [коя е|каква е] [днешната] дата[та]" | |
- "[кажи ми] [коя|каква] дата е [днес]" | |
- "коя дата сме [днес]" | |
- "датата" | |
- "[кажи ми] кой ден сме [днес]" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: bg | ||
intents: | ||
HassGetCurrentTime: | ||
data: | ||
- sentences: | ||
- "[кажи ми] колко е часа" | ||
- "[кажи ми] час[а]" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: bg | ||
tests: | ||
- sentences: | ||
- "дата" | ||
- "кажи ми датата" | ||
- "коя е днешната дата" | ||
- "коя дата е днес" | ||
- "кажи ми днешната дата" | ||
intent: | ||
name: HassGetCurrentDate | ||
response: "седемнайсети Септември 2013-та" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: bg | ||
tests: | ||
- sentences: | ||
- "колко е часа" | ||
- "кажи ми колко е часа" | ||
- "час" | ||
- "кажи ми час" | ||
intent: | ||
name: HassGetCurrentTime | ||
response: "01 часа и 02 минути" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo in Bulgarian ordinal number.
The word 'шеснтнайсети' contains a typo and should be 'шестнайсети' (sixteenth).
📝 Committable suggestion