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] HassCancelTimer #2330

Merged
merged 1 commit into from
Jul 16, 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
5 changes: 5 additions & 0 deletions responses/zh-hk/HassCancelTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: zh-hk
responses:
intents:
HassCancelTimer:
default: "計時器取消"
6 changes: 4 additions & 2 deletions sentences/zh-hk/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ expansion_rules:
add: "(加[添])"
status: "(狀況)"
timer: "(計時器|倒時器|倒數器)"
my: "(我的|我個)"
the: "(嗰個)"
my: "(我的|我個|我嗰個|我嘅)"
how much: "(幾多)"
left: "([還|重]剩)"
pause: "(暫停)"
Expand All @@ -220,7 +221,8 @@ expansion_rules:

# Timers
timer_set: "(開始|放置|撥|set)"
timer_cancel: "(cancel|stop)"
timer_cancel: "(取消|停止|cancel|stop)"

timer_duration_seconds: "{timer_seconds:seconds} <second>"
timer_duration_minutes: "({timer_minutes:minutes} <minute>[ [and ]{timer_seconds:seconds} <second>])|({timer_minutes:minutes} [and[ a]] {timer_half:seconds}[<minute>])|({timer_half:seconds} <minute>)|({timer_5minute:minutes} [<minute>])"
timer_duration_hours: "({timer_hours:hours} <hour>[ [and ]{timer_minutes:minutes} <minute>][ [and ]{timer_seconds:seconds} <second>])|({timer_hours:hours}[<hour>] [and[ a]] {timer_half:minutes} [<hour>])|({timer_half:minutes} <hour>)"
Expand Down
10 changes: 10 additions & 0 deletions sentences/zh-hk/homeassistant_HassCancelTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
language: zh-hk
intents:
HassCancelTimer:
data:
- sentences:
- "<timer_cancel> [<the>| <my>] <timer>"
- "<timer_cancel> [<the>| <my>] <timer_start> [<the>| <my>] <timer>"
- "<timer_cancel> [<the>| <my>] {area} [<the>| <my>] <timer>"
- "<timer_cancel> [<the>| <my>] {timer_name:name} [<the>| <my>] <timer>"
8 changes: 4 additions & 4 deletions sentences/zh-hk/homeassistant_HassPauseTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intents:
HassPauseTimer:
data:
- sentences:
- "<pause>[<my>] <timer>"
- "<pause><timer_start> <timer>"
- "<pause> {area} <timer>"
- "<pause> {timer_name:name} <timer>"
- "<pause> [<the>| <my>] <timer>"
- "<pause> [<the>| <my>] <timer_start> [<the>| <my>] <timer>"
- "<pause> [<the>| <my>] {area} [<the>| <my>] <timer>"
- "<pause> [<the>| <my>] {timer_name:name} [<the>| <my>] <timer>"
6 changes: 3 additions & 3 deletions sentences/zh-hk/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ intents:
data:
- sentences:
- "<timer_duration> <timer>"
- "<timer_set>[<my>] <timer_duration> <timer>"
- "<timer_set>[ a| the| my] <timer> <for> <timer_duration>"
- "<timer_set>[ a| the| my] {timer_name:name} <timer> <for> <timer_duration>"
- "<timer_set> [<the>| <my>] <timer_duration> [<the>| <my>] <timer>"
- "<timer_set> [<the>| <my>] [<the>| <my>] <timer> <for> <timer_duration>"
- "<timer_set> [<the>| <my>] {timer_name:name} [<the>| <my>] <timer> <for> <timer_duration>"
- "{timer_command:conversation_command} in <timer_duration>"
- "<timer_duration> 後 {timer_command:conversation_command} "
response: command
8 changes: 4 additions & 4 deletions sentences/zh-hk/homeassistant_HassUnpauseTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intents:
HassUnpauseTimer:
data:
- sentences:
- "<resume>[<my>] <timer>"
- "<resume>[<my>] <timer_start> <timer>"
- "<resume>[<my>] {area} <timer>"
- "<resume>[<my>] {timer_name:name} <timer>"
- "<resume> [<the>| <my>] <timer>"
- "<resume> [<the>| <my>] <timer_start> [<the>| <my>] <timer>"
- "<resume> [<the>| <my>] {area} [<the>| <my>] <timer>"
- "<resume> [<the>| <my>] {timer_name:name} [<the>| <my>] <timer>"
39 changes: 39 additions & 0 deletions tests/zh-hk/homeassistant_HassCancelTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
language: zh-hk
tests:
- sentences:
- "停止 計時器"
- "停止 我嘅 計時器"
- "停止 嗰個 計時器"
intent:
name: HassCancelTimer
response: 計時器取消

- sentences:
- "停止 5 分鐘 計時器"
- "停止 嗰個 5 分鐘 計時器"
intent:
name: HassCancelTimer
slots:
start_minutes: 5
response: 計時器取消

- sentences:
- "停止 廚房 計時器"
- "停止 嗰個 廚房 計時器"
- "停止 廚房 嗰個 計時器"
intent:
name: HassCancelTimer
slots:
area: 廚房
response: 計時器取消

- sentences:
- "停止 pizza 計時器"
- "停止 pizza 嗰個 計時器"
- "停止 嗰個 pizza 計時器"
intent:
name: HassCancelTimer
slots:
name:
- "pizza"
response: 計時器取消
10 changes: 7 additions & 3 deletions tests/zh-hk/homeassistant_HassPauseTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@ tests:
- sentences:
- "暫停 計時器"
- "暫停 我 個 計時器"
- "暫停 嗰個 計時器"
intent:
name: HassPauseTimer
response: 計時器暫停

- sentences:
- "暫停 1 小時 計時器"
- "暫停 嗰個 1 小時 計時器"
- "暫停 1 小時 嗰個 計時器"
intent:
name: HassPauseTimer
slots:
start_hours: 1
response: 計時器暫停

- sentences:
- "暫停 廚房 計時器"
- "暫停 嗰個 廚房 計時器"
- "暫停 廚房 嗰個 計時器"
intent:
name: HassPauseTimer
slots:
area: 廚房
response: 計時器暫停

- sentences:
- "暫停 pizza 計時器"
- "暫停 嗰個 pizza 計時器"
- "暫停 pizza 嗰個 計時器"
intent:
name: HassPauseTimer
slots:
Expand Down
25 changes: 24 additions & 1 deletion tests/zh-hk/homeassistant_HassStartTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ tests:
response: 收到命令

- sentences:
- "開始 1 小時 計時器"
- "開始 嗰個 1 小時 計時器"
- "開始 1 小時 嗰個 計時器"
- "撥 嗰個 計時器 到 1 小時"
- "撥 計時器 到 1 小時"
- "set 計時器 到 1 小時"
- "set 計時器 到 1 個鐘"
Expand All @@ -23,6 +25,7 @@ tests:

- sentences:
- "撥 計時器 到 5 分鐘 30 秒"
- "撥 嗰個 計時器 到 5 分鐘 30 秒"
- "撥 計時器 到 5 分 30 秒"
#- "撥 計時器 到 5 分 半"
intent:
Expand All @@ -36,6 +39,7 @@ tests:

- sentences:
- "撥 計時器 到 半 分鐘"
- "撥 嗰個 計時器 到 半 分鐘"
intent:
name: HassStartTimer
context:
Expand All @@ -46,6 +50,7 @@ tests:

- sentences:
- "撥 計時器 到 1 個鐘頭 30 分鐘"
- "撥 嗰個 計時器 到 1 個鐘頭 30 分鐘"
- "撥 計時器 到 1 個鐘 半"
- "撥 計時器 到 1 個 半 鐘"
intent:
Expand All @@ -59,6 +64,7 @@ tests:

- sentences:
- "撥 計時器 到 半 個鐘"
- "撥 嗰個 計時器 到 半 個鐘"
- "撥 計時器 到 30 分鐘"
intent:
name: HassStartTimer
Expand All @@ -70,6 +76,7 @@ tests:

- sentences:
- "撥 計時器 到 1 個鐘頭 15 分鐘"
- "撥 嗰個 計時器 到 1 個鐘頭 15 分鐘"
intent:
name: HassStartTimer
context:
Expand All @@ -81,6 +88,7 @@ tests:

- sentences:
- "撥 計時器 到 1 個鐘頭 30 秒"
- "撥 嗰個 計時器 到 1 個鐘頭 30 秒"
intent:
name: HassStartTimer
context:
Expand All @@ -92,6 +100,7 @@ tests:

- sentences:
- "撥 計時器 到 1 個鐘頭 15 分 30 秒"
- "撥 嗰個 計時器 到 1 個鐘頭 15 分 30 秒"
intent:
name: HassStartTimer
context:
Expand All @@ -104,6 +113,7 @@ tests:

- sentences:
- "撥 計時器 到 5 分鐘"
- "撥 嗰個 計時器 到 5 分鐘"
- "撥 計時器 到 一個字"
intent:
name: HassStartTimer
Expand All @@ -115,6 +125,7 @@ tests:

- sentences:
- "撥 計時器 到 10 分鐘"
- "撥 嗰個 計時器 到 10 分鐘"
- "撥 計時器 到 兩個字"
intent:
name: HassStartTimer
Expand All @@ -126,6 +137,7 @@ tests:

- sentences:
- "撥 計時器 到 15 分鐘"
- "撥 嗰個 計時器 到 15 分鐘"
- "撥 計時器 到 三個字"
intent:
name: HassStartTimer
Expand All @@ -137,6 +149,7 @@ tests:

- sentences:
- "撥 計時器 到 20 分鐘"
- "撥 嗰個 計時器 到 20 分鐘"
- "撥 計時器 到 四個字"
intent:
name: HassStartTimer
Expand All @@ -148,6 +161,7 @@ tests:

- sentences:
- "撥 計時器 到 25 分鐘"
- "撥 嗰個 計時器 到 25 分鐘"
- "撥 計時器 到 五個字"
intent:
name: HassStartTimer
Expand All @@ -159,6 +173,7 @@ tests:

- sentences:
- "撥 計時器 到 35 分鐘"
- "撥 嗰個 計時器 到 35 分鐘"
- "撥 計時器 到 七個字"
intent:
name: HassStartTimer
Expand All @@ -170,6 +185,7 @@ tests:

- sentences:
- "撥 計時器 到 40 分鐘"
- "撥 嗰個 計時器 到 40 分鐘"
- "撥 計時器 到 八個字"
intent:
name: HassStartTimer
Expand All @@ -181,6 +197,7 @@ tests:

- sentences:
- "撥 計時器 到 45 分鐘"
- "撥 嗰個 計時器 到 45 分鐘"
- "撥 計時器 到 九個字"
intent:
name: HassStartTimer
Expand All @@ -192,6 +209,7 @@ tests:

- sentences:
- "撥 計時器 到 50 分鐘"
- "撥 嗰個 計時器 到 50 分鐘"
- "撥 計時器 到 十個字"
intent:
name: HassStartTimer
Expand All @@ -203,6 +221,7 @@ tests:

- sentences:
- "撥 計時器 到 55 分鐘"
- "撥 嗰個 計時器 到 55 分鐘"
- "撥 計時器 到 十一個字"
intent:
name: HassStartTimer
Expand All @@ -214,6 +233,8 @@ tests:

- sentences:
- "set pizza 計時器 到 5 分鐘"
- "set 嗰個 pizza 計時器 到 5 分鐘"
- "set pizza 嗰個 計時器 到 5 分鐘"
intent:
name: HassStartTimer
context:
Expand All @@ -226,6 +247,7 @@ tests:

- sentences:
- "撥 計時器 到 5 分 10 秒"
- "撥 嗰個 計時器 到 5 分 10 秒"
intent:
name: HassStartTimer
context:
Expand All @@ -237,6 +259,7 @@ tests:

- sentences:
- "撥 計時器 到 45 秒"
- "撥 嗰個 計時器 到 45 秒"
intent:
name: HassStartTimer
context:
Expand Down
10 changes: 7 additions & 3 deletions tests/zh-hk/homeassistant_HassUnpauseTimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@ tests:
- sentences:
- "恢復 計時器"
- "繼續 我 個 計時器"
- "繼續 嗰個 計時器"
intent:
name: HassUnpauseTimer
response: 計時器恢復

- sentences:
- "恢復 1 小時 倒數器"
- "恢復 嗰個 1 小時 倒數器"
- "恢復 1 小時 嗰個 倒數器"
intent:
name: HassUnpauseTimer
slots:
start_hours: 1
response: 計時器恢復

- sentences:
- "恢復 廚房 倒數器"
- "恢復 嗰個 廚房 倒數器"
- "恢復 廚房 嗰個 倒數器"
intent:
name: HassUnpauseTimer
slots:
area: 廚房
response: 計時器恢復

- sentences:
- "繼續 pizza 計時器"
- "繼續 嗰個 pizza 計時器"
- "繼續 pizza 嗰個 計時器"
intent:
name: HassUnpauseTimer
slots:
Expand Down