fix(i18n): U30 修复 8 处批量 i18n 转换损坏的调用 — DeploymentEditContainers/DeploymentEditStorage/AgentRuleDialog/LogFieldSidebar
损坏原因: 早期批量正则 i18n 转换 (U20 记录的 i18n.t() 损坏模式遗留) 将模板表达式/JSX
碎片错误包裹进 i18n.t() 调用, 产生运行时垃圾文本渲染.
修复清单:
- DeploymentEditContainers.tsx:85 — toast 调用 description 字段损坏 (i18n.t('), description: ...'))
- DeploymentEditStorage.tsx:175 — !manifest 空状态文案损坏
- DeploymentEditStorage.tsx:202 — 数据卷卡片副标题损坏
- AgentRuleDialog.tsx:111 — DialogDescription 损坏 (i18n.t('>阈值 {ruleForm.metric !== '))
- AgentRuleDialog.tsx:157 — 操作符 Label 损坏
- AgentRuleDialog.tsx:183 — 端口 Label 损坏
- AgentRuleDialog.tsx:195 — 持续时间 Label 损坏
- LogFieldSidebar.tsx:68 — 搜索框 placeholder 损坏
新增 i18n 键 (zh/en 对齐 7370→7376 +6):
- agent.ruleDialog.description / operator / port / duration
- kubernetes.storage.volumeDesc
- monitor.lbl.searchFields
验证: tsc -b=0, npm build✓ (17.99s), ESLint=0/53/0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
064b6c4ec2
commit
3039b76cb5
6 files changed
+29
-17
No files matched your search
@@ -4907,7 +4907,8 @@
|
||||
"siteRequestFailed": "请求失败",
|
||||
"siteRequestTimeout": "请求超时",
|
||||
"siteConnFailed": "连接失败",
|
||||
"noProbeHint": "暂无健康探针,点击「{{action}}」创建"
|
||||
"noProbeHint": "暂无健康探针,点击「{{action}}」创建",
|
||||
"searchFields": "搜索字段"
|
||||
},
|
||||
"alertRuleDialog2": {
|
||||
"editRule": "编辑告警规则",
|
||||
@@ -5624,7 +5625,8 @@
|
||||
"expanded": "已扩容",
|
||||
"expandFailed": "扩容失败",
|
||||
"provisioner": "供应器",
|
||||
"parameters": "参数"
|
||||
"parameters": "参数",
|
||||
"volumeDesc": "为容器挂载持久化存储卷"
|
||||
},
|
||||
"event": {
|
||||
"title": "事件",
|
||||
@@ -6886,7 +6888,11 @@
|
||||
"enterName": "请输入规则名称",
|
||||
"editRule": "编辑规则",
|
||||
"namePlaceholder": "例如:CPU 使用率告警",
|
||||
"portPlaceholder": "例如:8080"
|
||||
"portPlaceholder": "例如:8080",
|
||||
"description": "配置监控指标的告警阈值和通知规则",
|
||||
"operator": "操作符",
|
||||
"port": "端口",
|
||||
"duration": "持续时间(秒)"
|
||||
},
|
||||
"monitor2": {
|
||||
"commandPlaceholder2": "例如:free -m && df -h"
|
||||
|
||||
Reference in new issue
Block a user