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

[zh-hk] error message #2348

Merged
merged 2 commits into from
Jul 22, 2024
Merged
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
27 changes: 26 additions & 1 deletion sentences/zh-hk/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ settings:
responses:
errors:
# General errors
no_intent: "對唔住,我聽不明白"
no_intent: "對唔住,我聽唔明白"
handle_error: "處理時發生意外錯誤"

# Errors for when user is not logged in
Expand All @@ -22,6 +22,17 @@ responses:
entity_wrong_state: "唔好意思,無實體狀況係 {{ state | lower }}"
feature_not_supported: "唔好意思,無設備支援所需的功能"

# 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 }} 樓層 暴露"

# Errors for timers
timer_not_found: "唔好意思,找不到那個計時器"
multiple_timers_matched: "唔好意思,我無法定位多個計時器"
Expand All @@ -48,34 +59,40 @@ lists:
out: "black"
- in: "棕色"
out: "brown"

brightness:
range:
type: "percentage"
from: 0
to: 100

temperature:
range:
type: "temperature"
from: 0
to: 100

temperature_unit:
values:
- in: "c|攝氏|度|度攝氏|°C|℃"
out: "celsius"
- in: "f|華氏|度|度華氏|°F|℉"
out: "fahrenheit"

brightness_level:
values:
- in: "(最大|最光|最高|最亮)"
out: 100
- in: "(最小|最暗|最低|最黑)"
out: 1

on_off_states:
values:
- in: "(打開|開著|開了|開咗|開)[的]"
out: "on"
- in: "(關閉|關著|關了|關咗|閂咗|閂)[的]"
out: "off"

on_off_domains:
values:
- in: "(燈|天花燈|筒燈|射燈|檯燈|床頭燈|燈光)"
Expand All @@ -84,6 +101,7 @@ lists:
out: fan
- in: "(開關|開關制|電源|插座|通斷器)"
out: switch

cover_states:
values:
- in: "(打開|開著|開了|開咗|打開)[的|咗]"
Expand All @@ -94,6 +112,7 @@ lists:
out: opening
- in: "關閉緊"
out: closing

cover_classes:
values:
- in: "(遮陽|雨)(蓬|棚)"
Expand Down Expand Up @@ -135,20 +154,24 @@ lists:
range:
from: 1
to: 100

timer_minutes:
range:
from: 1
to: 100

timer_hours:
range:
from: 1
to: 100

timer_half:
values:
- in: "半"
out: 30
- in: "1/2"
out: 30

timer_5minute:
values:
- in: "一個字"
Expand All @@ -171,8 +194,10 @@ lists:
out: 50
- in: "十一個字"
out: 55

timer_name:
wildcard: true

timer_command:
wildcard: true

Expand Down