Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"activity_rebalance_recorded": "已记录调仓操作",
"workflow_heartbeat_latest_failed": "最近一次运行未成功完成(结论:{conclusion})",
"workflow_heartbeat_no_success": "GitHub Actions 查询未返回成功的运行记录",
"workflow_heartbeat_query_failed": "GitHub Actions 运行记录查询失败",
"workflow_heartbeat_missing_dispatches": "已连续 {count} 个预期周期未发现运行(阈值:{threshold})",
},
"en": {
Expand Down Expand Up @@ -82,6 +83,7 @@
"activity_rebalance_recorded": "rebalance action recorded",
"workflow_heartbeat_latest_failed": "The latest runtime run did not complete successfully (conclusion: {conclusion})",
"workflow_heartbeat_no_success": "The GitHub Actions query returned no successful runtime run",
"workflow_heartbeat_query_failed": "The GitHub Actions runtime-run query failed",
"workflow_heartbeat_missing_dispatches": "No runtime dispatch was found for {count} expected interval(s) (threshold: {threshold})",
},
}
Expand Down
4 changes: 4 additions & 0 deletions tests/test_notification_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def test_operational_locale_and_normal_heartbeat_are_bilingual(self):
operational_notification_text("zh", "heartbeat_no_enabled_target"),
"没有与当前心跳匹配的可执行运行目标;未提交订单。",
)
self.assertEqual(
operational_notification_text("zh", "workflow_heartbeat_query_failed"),
"GitHub Actions 运行记录查询失败",
)
self.assertEqual(
format_operational_heartbeat_status(
locale="zh",
Expand Down