fix(i18n): translate lifecycle_failed again

d7fa1e96 dropped the code with honk's suspend and resume, but doona still
offers both when a backend advertises them, and honk builds from before
the removal report a failed one with this code. Restore the mapping and
its three messages, and cover it in the operation code test.
This commit is contained in:
Zakk committed 2026-09-28 03:46:04 +10:00
1 parent 1e46eef0f4
commit 24f8cc8436
6 files changed
+9

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ const operationCodes = [
'reload_degraded',
'engine_unavailable',
'request_exhausted',
'lifecycle_failed',
'geodata_update_failed',
'probe_interrupted',
'probe_cleanup_failed',
+2
View File
@@ -28,6 +28,8 @@ const known: Record<string, Key> = {
reload_degraded: 'ui.backend.reloadDegraded',
engine_unavailable: 'ui.backend.engineUnavailable',
request_exhausted: 'ui.backend.requestExhausted',
// honk builds before suspend and resume were removed report a failed one with this code; doona still offers both.
lifecycle_failed: 'ui.backend.lifecycleFailed',
geodata_update_failed: 'ui.backend.geodataUpdateFailed',
// geodata.last_error carries the failed stage as its code.
asset_validation_failed: 'ui.backend.assetValidationFailed',
+1
View File
@@ -1437,6 +1437,7 @@ export const messages = {
'ui.backend.reloadDegraded': 'The configuration is applied, but the datapath is degraded',
'ui.backend.engineUnavailable': 'The engine is unavailable or stopped before finishing',
'ui.backend.requestExhausted': 'Reload request numbers are exhausted',
'ui.backend.lifecycleFailed': 'The service state change failed',
'ui.backend.geodataUpdateFailed': 'The geodata update failed',
'ui.backend.assetValidationFailed':
'The new geodata file failed validation: it could not be read or lacks categories the rules use. The current files are kept',
+1
View File
@@ -1394,6 +1394,7 @@ export const messages = {
'ui.backend.reloadDegraded': '配置已应用,但数据路径处于降级状态',
'ui.backend.engineUnavailable': '引擎不可用,或在完成前已停止',
'ui.backend.requestExhausted': '重载请求序号已用尽',
'ui.backend.lifecycleFailed': '服务状态切换失败',
'ui.backend.geodataUpdateFailed': '地理数据更新失败',
'ui.backend.assetValidationFailed': '新的地理数据文件未通过校验:文件无法解析,或缺少规则使用的分类。已沿用当前的文件',
'ui.backend.probeInterrupted': '探测在完成前中断',
+1
View File
@@ -1394,6 +1394,7 @@ export const messages = {
'ui.backend.reloadDegraded': '組態已套用,但資料路徑處於降級狀態',
'ui.backend.engineUnavailable': '引擎無法使用,或在完成前已停止',
'ui.backend.requestExhausted': '重載請求序號已用盡',
'ui.backend.lifecycleFailed': '服務狀態切換失敗',
'ui.backend.geodataUpdateFailed': '地理資料更新失敗',
'ui.backend.assetValidationFailed': '新的地理資料檔未通過驗證:檔案無法解析,或缺少規則使用的分類。已沿用目前的檔案',
'ui.backend.probeInterrupted': '探測在完成前中斷',
+3
View File
@@ -72,6 +72,7 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': '組態已套用,但資料路徑處於降級狀態',
'ui.backend.engineUnavailable': '引擎無法使用,或在完成前已停止',
'ui.backend.requestExhausted': '重載請求序號已用盡',
'ui.backend.lifecycleFailed': '服務狀態切換失敗',
'ui.backend.geodataUpdateFailed': '地理資料更新失敗',
'ui.backend.assetValidationFailed': '新的地理資料檔未通過驗證:檔案無法解析,或缺少規則使用的分類。已沿用目前的檔案',
'ui.backend.probeInterrupted': '探測在完成前中斷',
@@ -233,6 +234,7 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': '配置已应用,但数据路径处于降级状态',
'ui.backend.engineUnavailable': '引擎不可用,或在完成前已停止',
'ui.backend.requestExhausted': '重载请求序号已用尽',
'ui.backend.lifecycleFailed': '服务状态切换失败',
'ui.backend.geodataUpdateFailed': '地理数据更新失败',
'ui.backend.assetValidationFailed': '新的地理数据文件未通过校验:文件无法解析,或缺少规则使用的分类。已沿用当前的文件',
'ui.backend.probeInterrupted': '探测在完成前中断',
@@ -394,6 +396,7 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': 'The configuration is applied, but the datapath is degraded',
'ui.backend.engineUnavailable': 'The engine is unavailable or stopped before finishing',
'ui.backend.requestExhausted': 'Reload request numbers are exhausted',
'ui.backend.lifecycleFailed': 'The service state change failed',
'ui.backend.geodataUpdateFailed': 'The geodata update failed',
'ui.backend.assetValidationFailed':
'The new geodata file failed validation: it could not be read or lacks categories the rules use. The current files are kept',