refactor(i18n): U22 日志中心组件 i18n 治理 — QuickQueryBar/types-v3/TimeRangePicker/LogRBAC 中文键清零

- QuickQueryBar.tsx: 23 处中文键 → monitor.logCenter.quickQuery.* 语义键
- types-v3.ts: 15 处中文键 → monitor.logCenter.quickQuery.* 语义键 (含 QUICK_TEMPLATES 3 引擎)
- TimeRangePicker.tsx: 13 处中文键 → monitor.timeRangePicker.* 语义键 + 修复 3 个复制粘贴 bug 键
  (i18n.t('开启后折叠行仅显示前 500 字预览') 应为 '选择时间范围'/'绝对时间'/'自定义时间范围')
  (i18n.t(' > 另存为 <ChevronDown className=') 应为 '相对时间')
- LogRBAC.tsx: 10 处中文键/硬编码 → monitor.logRbac.* 语义键 + 插值键 (scopeCount/deleteConfirm)
- zh/en 新增 68 键对齐 (7038→7098), tsc -b=0, npm build✓ (17.41s), ESLint=0/0/0, 17/17 测试通过
This commit is contained in:
attacker committed 2026-07-11 15:15:47 +08:00
1 parent fba5fc46b6
commit a8f6fd190b
6 files changed
+205 -81

No files matched your search

+64 -2
View File
@@ -3263,7 +3263,49 @@
"alerts": "Log Alerts",
"alertsDesc": "Log alert policies based on query conditions",
"rbac": "Log Permissions",
"rbacDesc": "Restrict query scope by ES index / Loki Label regex"
"rbacDesc": "Restrict query scope by ES index / Loki Label regex",
"quickQuery": {
"quickTemplates": "Quick Query Templates",
"slsConsole": "SLS Console",
"nginxError": "Nginx Errors",
"jsonFilter": "JSON Filter",
"timeoutSearch": "Timeout Search",
"levelStats": "Level Stats",
"regexMultiLevel": "Regex Multi-Level",
"slowRequest1s": "Slow Requests >1s",
"errorRateStats": "Error Rate Stats",
"traceIdQuery": "Trace ID Query",
"highLatencyFilter": "High Latency Filter",
"exceptionStack": "Exception Stack",
"regexExtract": "Regex Extract",
"formatOutput": "Format Output",
"esErrorTimeout": "Error & Timeout",
"excludeDebug": "Exclude Debug",
"slowRequest": "Slow Requests",
"criticalError": "Critical Errors",
"combinedQuery": "Combined Query",
"fuzzyMatch": "Fuzzy Match",
"rangeQuery": "Range Query",
"excludePath": "Exclude Paths",
"timeFilter": "Time Filter",
"ipSegmentFilter": "IP Segment Filter",
"multiLevelFilter": "Multi-Level Filter",
"nestedField": "Nested Field",
"nginxErrorLog": "Nginx Error Logs",
"jsonParseFilter": "JSON Parse Filter",
"statsByLevel": "Stats by Level",
"regexMultiLevelMatch": "Regex Multi-Level Match",
"slowRequestGt1s": "Slow Requests >1s",
"api5xxError": "API 5xx Errors",
"errorTimeoutLog": "Error Timeout Logs",
"excludeDebugLog": "Exclude Debug Logs",
"slowRequestDetect": "Slow Request Detection",
"lastHourCritical": "Last Hour Critical Errors",
"errorLogFilter": "Error Log Filter",
"timeAggregate": "Time Aggregation",
"statusCodeDist": "Status Code Distribution",
"slowRequestAnalysis": "Slow Request Analysis"
}
},
"alertEvents": {
"searchPlaceholder": "Search alert name or target...",
@@ -4388,7 +4430,11 @@
"thisMonth": "This month",
"lastMonth": "Last month",
"thisQuarter": "This quarter",
"thisYear": "This year"
"thisYear": "This year",
"selectTimeRange": "Select Time Range",
"relativeTime": "Relative Time",
"absoluteTime": "Absolute Time",
"customTimeRange": "Custom Time Range"
},
"channel": {
"dingtalk": "DingTalk",
@@ -4430,6 +4476,22 @@
"perPage": "/page",
"prevPage": "Prev",
"nextPage": "Next"
},
"logRbac": {
"analyst": "Analyst",
"fillRequired": "Please fill in name, code and regex pattern",
"deletePermission": "Delete Permission",
"deleteConfirm": "Delete \"{{name}}\"? This will affect {{count}} sample scopes",
"selectUserAndPermission": "Please select user and permission",
"permissionPolicy": "Permission Policy",
"userAssignment": "User Assignment",
"createPermission": "New Permission",
"noPolicies": "No log permission policies",
"noPoliciesDesc": "After creating and assigning policies to users, queryable indices and labels will be restricted by regex patterns",
"scopeCount": "{{count}} scopes",
"userPolicyHint": "Users without any policy are not blocked (backward compatible); once assigned, only queries matching policies are allowed.",
"assign": "Assign",
"all": "All"
}
},
"task": {