fix(i18n): cost-predict.ts hash key 清理 + 硬编码中文清零 + 错误 key 引用修复
- 23 个 predictutilsts.s* hash-style 键重命名为 costPredict.* 语义化键 - 7 处 buildCostInsightPrompt 硬编码中文模板字面量→i18n.t() 插值调用 - 修复 costRecommendation 函数引用错误 key (predictMemLeak→costPredict.rec*) - 修复 dimension 字段引用 predictDiskFull→costPredict.allProviders - 修复 providerLabel 引用 predictIn24h→costPredict.allProviders - 新增 34 个语义化翻译键 (aiops.costPredict.*), zh/en 8102→8113 对齐 - tsc -b=0, npm build✓ (19.29s), ESLint=0/43/any=0, go build=0 - 17/17 集成测试通过
This commit is contained in:
1 parent
d6ed1978ef
commit
083f4477db
3 files changed
+117
-83
No files matched your search
@@ -8602,29 +8602,6 @@
|
||||
"predictutilsts.providerAliyun": "Alibaba Cloud",
|
||||
"predictutilsts.providerHuawei": "Huawei Cloud",
|
||||
"predictutilsts.providerTencent": "Tencent Cloud",
|
||||
"predictutilsts.sd4e5f6g7": "End of month",
|
||||
"predictutilsts.se5f6g7h8": "Within today",
|
||||
"predictutilsts.sf6g7h8i9": "Within 1 day",
|
||||
"predictutilsts.sg5a3d8e1": "All",
|
||||
"predictutilsts.sg7h8i9j0": "Within {{days}} days",
|
||||
"predictutilsts.sh7c2b9d6": "Other",
|
||||
"predictutilsts.sh8i9j0k1": "In about {{days}} days",
|
||||
"predictutilsts.si9j0k1l2": "Budget Rule",
|
||||
"predictutilsts.sj0k1l2m3": "Bills front-loaded at month start, may contain pre-paid or retired resources; prediction uses recent 7-day run rate",
|
||||
"predictutilsts.sk1l2m3n4": "Insufficient daily bill samples, lower prediction confidence",
|
||||
"predictutilsts.sl2m3n4o5": "Daily bills are relatively stable, extrapolated by trend",
|
||||
"predictutilsts.sm3n4o5p6": "No budget threshold risk",
|
||||
"predictutilsts.sn4o5p6q7": "No service-level detail",
|
||||
"predictutilsts.so5p6q7r8": "You are a FinOps cloud cost optimization expert. Based on the following cloud billing prediction data, provide comprehensive cost risk assessment and actionable cost-reduction recommendations:",
|
||||
"predictutilsts.sp6q7r8s9": "[Overview]",
|
||||
"predictutilsts.sq7r8s9t0": "[Top Service Costs]",
|
||||
"predictutilsts.sr8s9t0u1": "[Dimension Forecasts]",
|
||||
"predictutilsts.ss9t0u1v2": "[Budget Risks]",
|
||||
"predictutilsts.st0u1v2w3": "Output requirements (Markdown, Chinese):",
|
||||
"predictutilsts.su1v2w3x4": "1. Use **bold subtitles** for sections with 1 key point each, e.g.: **Data Anomalies**, **Idle Resource Cleanup**, **Billing Mode Optimization**, **Storage Lifecycle**",
|
||||
"predictutilsts.sv2w3x4y5": "2. If monthly avg and recent 7-day avg clearly contradict predicted month-end, explain in 'Data Anomalies' (pre-paid/shutdown etc.)",
|
||||
"predictutilsts.sw3x4y5z6": "3. Give actionable recommendations per top service (EIP/disk/ECS spec/OSS lifecycle/reserved instances etc.)",
|
||||
"predictutilsts.sx4y5z6a7": "4. Pick 3-5 most relevant recommendations, under 350 words, no generic platitudes",
|
||||
"probabilityColon": "Probability: ",
|
||||
"processing": "Processing...",
|
||||
"providerAndCredential": "Model & Credential",
|
||||
@@ -8775,7 +8752,41 @@
|
||||
"recentReleases": "Recent releases:",
|
||||
"overviewFallback": "Servers:{{servers}}(running {{running}}) | K8s clusters:{{clusters}} Nodes:{{nodes}} Pods:{{pods}} | Alerts:{{alerts}}(firing {{firing}}) | Pipelines:{{pipelines}}(success {{rate}}%) | Monthly cost:¥{{cost}}",
|
||||
"noAgentData": "(No Agent data currently, monitoring Agent may not be deployed)"
|
||||
}
|
||||
},
|
||||
"costPredict.allProviders": "All",
|
||||
"costPredict.unknownService": "Other",
|
||||
"costPredict.monthEnd": "End of month",
|
||||
"costPredict.withinToday": "Within today",
|
||||
"costPredict.withinOneDay": "Within 1 day",
|
||||
"costPredict.withinDays": "Within {{days}} days",
|
||||
"costPredict.approxAfterDays": "In about {{days}} days",
|
||||
"costPredict.budgetRule": "Budget Rule",
|
||||
"costPredict.frontLoadedHint": "Bills front-loaded at month start, may contain pre-paid or retired resources; prediction uses recent 7-day run rate",
|
||||
"costPredict.sparseHint": "Insufficient daily bill samples, lower prediction confidence",
|
||||
"costPredict.steadyHint": "Daily bills are relatively stable, extrapolated by trend",
|
||||
"costPredict.noBudgetRisk": "No budget threshold risk",
|
||||
"costPredict.noServiceDetail": "No service-level detail",
|
||||
"costPredict.promptIntro": "You are a FinOps cloud cost optimization expert. Based on the following cloud billing prediction data, provide comprehensive cost risk assessment and actionable cost-reduction recommendations:",
|
||||
"costPredict.sectionOverview": "[Overview]",
|
||||
"costPredict.sectionTopServices": "[Top Service Costs]",
|
||||
"costPredict.sectionDimensionForecast": "[Dimension Forecasts]",
|
||||
"costPredict.sectionBudgetRisk": "[Budget Risks]",
|
||||
"costPredict.promptRequirements": "Output requirements (Markdown, Chinese):",
|
||||
"costPredict.promptReq1": "1. Use **bold subtitles** for sections with 1 key point each, e.g.: **Data Anomalies**, **Idle Resource Cleanup**, **Billing Mode Optimization**, **Storage Lifecycle**",
|
||||
"costPredict.promptReq2": "2. If monthly avg and recent 7-day avg clearly contradict predicted month-end, explain in 'Data Anomalies' (pre-paid/shutdown etc.)",
|
||||
"costPredict.promptReq3": "3. Give actionable recommendations per top service (EIP/disk/ECS spec/OSS lifecycle/reserved instances etc.)",
|
||||
"costPredict.promptReq4": "4. Pick 3-5 most relevant recommendations, under 350 words, no generic platitudes",
|
||||
"costPredict.dimLine": "- {{dim}}: This month {{current}} CNY → Predicted month-end {{predicted}} CNY (trend {{trend}})",
|
||||
"costPredict.riskLine": "- {{rule}} ({{provider}}): Current {{current}} / Threshold {{threshold}}, Predicted {{predicted}}, Probability {{probability}}%",
|
||||
"costPredict.serviceLine": "- {{service}}: {{cost}} CNY",
|
||||
"costPredict.monthSpent": "- Spent this month: {{amount}} CNY",
|
||||
"costPredict.predictedEnd": "- Predicted month-end: {{amount}} CNY (confidence {{confidence}}%)",
|
||||
"costPredict.dailySummary": "- Monthly avg: {{dailyAvg}} CNY; Recent 7-day avg: {{recentAvg}} CNY; {{daysRemaining}} days remaining",
|
||||
"costPredict.billingPatternLabel": "- Billing pattern: {{hint}}",
|
||||
"costPredict.recHighSpend": "Cost rising rapidly, investigate high-spend resources and optimize specs",
|
||||
"costPredict.recRising": "Cost trending up, monitor new service spending",
|
||||
"costPredict.recDeclining": "Cost declining, optimization is effective",
|
||||
"costPredict.recStable": "Cost stable, maintain current strategy"
|
||||
},
|
||||
"breadcrumb": {
|
||||
"aiAlertAnalyzer": "Alert Analysis",
|
||||
|
||||
Reference in new issue
Block a user