Skip to content
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

[uk] added floor lights #2149

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions responses/uk/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ responses:
HassTurnOff:
default: "{{ slots.name }} вимкнено"
lights_area: "Світло в {{ slots.area }} вимкнено"
lights_floor: "Світло вимкнено"
fans_area: "Вентилятори в {{ slots.area }} вимкнено"
cover: "{{ slots.name }} закрито"
cover_area: "{{ slots.area }} відкрито"
Expand Down
1 change: 1 addition & 0 deletions responses/uk/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ responses:
HassTurnOn:
default: "{{ slots.name }} ввімкнено"
lights_area: "Світло в {{ slots.area }} ввімкнено"
lights_floor: "Світло ввімкнено"
fans_area: "Вентилятори в {{ slots.area }} ввімкнено"
cover: "{{ slots.name }} відкрито"
cover_area: "{{ slots.area }} відкрито"
Expand Down
9 changes: 9 additions & 0 deletions sentences/uk/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,32 @@ responses:

# Errors for when user is not logged in
no_area: "Вибачте, мені не відоме приміщення з назвою {{ area }}"
no_floor: "Вибачте, мені не відомий поверх з назвою {{ area }}"
no_domain: "Вибачте, мені не відомо жодного {{ domain }}"
no_domain_in_area: "Вибачте, мені не відомо жодного {{ domain }} в приміщенні {{ area }}"
no_domain_in_floor: "Вибачте, мені не відомо жодного {{ domain }} на {{ floor }} поверсі"
no_device_class: "Вибачте, мені не відомо жодного {{ device_class }}"
no_device_class_in_area: "Вибачте, мені не відомо жодного {{ device_class }} в приміщенні {{ area }}"
no_device_class_in_floor: "Вибачте, мені не відомо жодного {{ device_class }} на {{ floor }} поверсі"
no_entity: "Вибачте, мені не відомо пристрою з назвою {{ entity }}"
no_entity_in_area: "Вибачте, мені не відомо пристрою з назвою {{ entity }} в приміщенні {{ area }}"
no_entity_in_floor: "Вибачте, мені не відомо пристрою з назвою {{ entity }} на {{ floor }} поверсі"

# Errors for when user is logged in and we can give more information
no_entity_exposed: "Вибачте, {{ entity }} не є доступним"
no_entity_in_area_exposed: "Вибачте, {{ entity }} в приміщенні {{ area }} не є доступним"
no_entity_in_floor_exposed: "Вибачте, {{ entity }} на {{ floor }} поверсі не є доступним"
no_domain_exposed: "Вибачте, немає жодного доступного {{ domain }}"
no_domain_in_area_exposed: "Вибачте, немає жодного доступного {{ domain }} в приміщенні {{ area }}"
no_domain_in_floor_exposed: "Вибачте, немає жодного доступного {{ domain }} на {{ floor }} поверсі"
no_device_class_exposed: "Вибачте, немає жодного доступного {{ device_class }}"
no_device_class_in_area_exposed: "Вибачте, немає жодного доступного {{ device_class }} в приміщенні {{ area }}"
no_device_class_in_floor_exposed: "Вибачте, немає жодного доступного {{ device_class }} на {{ floor }} поверсі"

# Used when multiple (exposed) devices have the same name
duplicate_entities: "Вибачте, є декілька пристроїв з назвою {{ entity }}"
duplicate_entities_in_area: "Вибачте, є декілька пристроїв з назвою {{ entity }} в приміщенні {{ area }}"
duplicate_entities_in_floor: "Вибачте, є декілька пристроїв з назвою {{ entity }} на {{ floor }} поверсі"
lists:
color:
values:
Expand Down Expand Up @@ -339,6 +347,7 @@ lists:
expansion_rules:
name: "{name}"
area: "[в|у|на] {area}"
floor: "[в|у|на] {floor}"
ввімкни: "(в|у)вімкни | включи"
вимкни: "вимкни | виключи"
зміни: "зміни | встанови | зроби"
Expand Down
7 changes: 7 additions & 0 deletions sentences/uk/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ intents:
slots:
domain: "light"
response: "lights_area"

- sentences:
- "<вимкни> [все] світло <floor>"
- "<вимкни> <floor> [все] світло"
response: "lights_floor"
slots:
domain: "light"
7 changes: 7 additions & 0 deletions sentences/uk/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ intents:
slots:
domain: "light"
response: "lights_area"

- sentences:
- "<ввімкни> [все] світло <floor>"
- "<ввімкни> <floor> [все] світло"
response: "lights_floor"
slots:
domain: "light"
3 changes: 3 additions & 0 deletions tests/uk/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ language: uk
areas:
- name: Кухн(я|і)
id: kitchen
floor: Перш(ий|ому) повер(х|сі)
- name: Вітальн(я|і)
id: living_room
floor: Перш(ий|ому) повер(х|сі)
- name: Спальн(я|і)
id: bedroom
floor: Друг(ий|ому) повер(х|сі)
- name: Гараж[і]
id: garage

Expand Down
10 changes: 10 additions & 0 deletions tests/uk/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ tests:
- Кухня
- Кухні
response: Світло в кухні вимкнено

- sentences:
- Вимкни світло на першому поверсі
- Вимкни на першому поверсі все світло
intent:
name: HassTurnOff
slots:
domain: light
floor: Першому поверсі
response: "Світло вимкнено"
10 changes: 10 additions & 0 deletions tests/uk/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ tests:
- Кухня
- Кухні
response: Світло в кухні ввімкнено

- sentences:
- Ввімкни світло на другому поверсі
- Ввімкни на другому поверсі все світло
intent:
name: HassTurnOn
slots:
domain: light
floor: Другому поверсі
response: "Світло ввімкнено"