feat(i18n): cloud 模块全量国际化迁移 — 4 组件 + 90 新增翻译键
迁移组件:
- RegionManager.tsx — providerNames→getProviderNames(t) 函数模式, 全量 t() 替换
- CloudAccountManager.tsx — providerLabels→getProviderLabels(t), 卡片/弹框/表单全量迁移
- CloudBilling.tsx — 概览/记录/预警三 Tab 全量迁移, TrendChart/StatStrip 标签国际化
- DomainManager.tsx — 域名卡片/状态徽章/创建编辑弹框全量迁移
翻译键: cloud 命名空间 145→235 键 (+90), common 新增 deleteFailed/deleteSuccess
验证: tsc -b=0, npm build✅ (21.21s), 17/17 集成测试通过, 0 缺失键, 0 残留 UI 中文
This commit is contained in:
1 parent
63e4c220d4
commit
8cbe3aadec
6 files changed
+409
-215
No files matched your search
@@ -471,7 +471,9 @@
|
||||
"channel": "Channel",
|
||||
"contact": "Contact",
|
||||
"true": "Yes",
|
||||
"false": "No"
|
||||
"false": "No",
|
||||
"deleteFailed": "Delete failed",
|
||||
"deleteSuccess": "Deleted successfully"
|
||||
},
|
||||
"menu": {
|
||||
"dashboard": "Dashboard",
|
||||
@@ -3822,7 +3824,95 @@
|
||||
"setBudget": "Set Budget",
|
||||
"budgetAlert": "Budget Alert",
|
||||
"budgetUsage": "Budget Usage",
|
||||
"budgetRemaining": "Budget Remaining"
|
||||
"budgetRemaining": "Budget Remaining",
|
||||
"code": "Code",
|
||||
"vendor": "Vendor",
|
||||
"location": "Location",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"allVendors": "All Vendors",
|
||||
"selectedRegionCount": "{{count}} regions selected",
|
||||
"clearSelection": "Clear Selection",
|
||||
"batchDelete": "Batch Delete",
|
||||
"batchDeleteRegion": "Batch Delete Regions",
|
||||
"batchDeleteRegionConfirm": "Are you sure you want to delete the selected {{count}} regions? This action cannot be undone.",
|
||||
"batchDeletedRegions": "{{count}} regions deleted",
|
||||
"batchDeleteFailed": "Batch delete failed",
|
||||
"deleteRegionConfirm": "Are you sure you want to delete \"{{name}}\"? This action cannot be undone.",
|
||||
"regionDeleted": "Region deleted",
|
||||
"regionsSubtitle": "Manage cloud provider regions and endpoints",
|
||||
"noRegionData": "No region data",
|
||||
"searchRegion": "Search region name or code...",
|
||||
"noMatchRegion": "No matching regions",
|
||||
"geoLocation": "Geographic Location",
|
||||
"regionNamePlaceholder": "e.g. North China-Beijing",
|
||||
"regionCodePlaceholder": "e.g. cn-north-1",
|
||||
"locationPlaceholder": "e.g. Beijing, China",
|
||||
"endpointPlaceholder": "e.g. ecs.cn-north-1.aliyuncs.com",
|
||||
"normal": "Normal",
|
||||
"stopped": "Stopped",
|
||||
"error": "Error",
|
||||
"searchAccount": "Search account name or AccessKey...",
|
||||
"accountsSubtitle": "Manage multi-cloud access credentials and account info",
|
||||
"noAccountData": "No cloud account data",
|
||||
"monthlyFee": "Monthly Fee",
|
||||
"serverCount": "Servers",
|
||||
"keepBlank": "Leave blank to keep unchanged",
|
||||
"monthlyFeeUnit": "Monthly Fee (CNY)",
|
||||
"saveChanges": "Save Changes",
|
||||
"createAccount": "Create Account",
|
||||
"editAccountDesc": "Modify account info and credentials. Leave blank to keep existing.",
|
||||
"addAccountDesc": "Enter multi-cloud credentials for resource sync and cost tracking",
|
||||
"accountNamePlaceholder": "e.g. Aliyun Production",
|
||||
"platformLabel": "Cloud Platform",
|
||||
"allPlatforms": "All Platforms",
|
||||
"loadStatsFailed": "Failed to load statistics",
|
||||
"loadBillingFailed": "Failed to load billing",
|
||||
"loadAlertRulesFailed": "Failed to load alert rules",
|
||||
"deleteBillingConfirm": "Are you sure you want to delete this cost record?",
|
||||
"operationFailed": "Operation failed",
|
||||
"overviewStats": "Overview",
|
||||
"costRecords": "Cost Records",
|
||||
"startDate": "Start Date",
|
||||
"endDate": "End Date",
|
||||
"query": "Query",
|
||||
"billingSubtitle": "Multi-cloud cost statistics, records and alerts",
|
||||
"today": "Today",
|
||||
"thisMonth": "This Month",
|
||||
"yearly": "Yearly",
|
||||
"alertCount": "{{count}} alerts",
|
||||
"recordCost": "Record Cost",
|
||||
"costAlert": "Cost Alerts",
|
||||
"monthlyAccumulated": "Monthly Accumulated",
|
||||
"current": "Current",
|
||||
"monthVendorDistribution": "Monthly Vendor Cost Distribution",
|
||||
"noDistributionData": "No distribution data",
|
||||
"noStatsData": "No statistics data",
|
||||
"noCostRecords": "No cost records",
|
||||
"colDate": "Date",
|
||||
"colService": "Service",
|
||||
"colRegion": "Region",
|
||||
"colAccount": "Account",
|
||||
"colCost": "Cost",
|
||||
"colDescription": "Description",
|
||||
"noAlertRules": "No alert rules",
|
||||
"alertRuleHint": "Add rules to manage cost threshold alerts",
|
||||
"colMetric": "Metric",
|
||||
"lastTriggered": "Last Triggered",
|
||||
"deleteBillingRecord": "Delete Billing Record",
|
||||
"deleteAlertRule": "Delete Alert Rule",
|
||||
"deleteAlertRuleConfirm": "Are you sure you want to delete this alert rule?",
|
||||
"pending": "Pending",
|
||||
"searchDomain": "Search domains...",
|
||||
"allStatus": "All Status",
|
||||
"domainsSubtitle": "Manage domain registration and DNS records",
|
||||
"noDomainData": "No domain data",
|
||||
"recordCountLabel": "DNS Record Count",
|
||||
"enableSsl": "Enable SSL",
|
||||
"createDomain": "Create Domain",
|
||||
"editDomainDesc": "Modify domain registration, DNS config and SSL certificate status",
|
||||
"addDomainDesc": "Enter domain info including registrar, DNS provider and expiry date",
|
||||
"daysLeft": "{{count}} days"
|
||||
},
|
||||
"agent": {
|
||||
"title": "Agent Management",
|
||||
|
||||
@@ -471,7 +471,9 @@
|
||||
"channel": "渠道",
|
||||
"contact": "联系人",
|
||||
"true": "是",
|
||||
"false": "否"
|
||||
"false": "否",
|
||||
"deleteFailed": "删除失败",
|
||||
"deleteSuccess": "删除成功"
|
||||
},
|
||||
"menu": {
|
||||
"dashboard": "仪表盘",
|
||||
@@ -3822,7 +3824,95 @@
|
||||
"setBudget": "设置预算",
|
||||
"budgetAlert": "预算预警",
|
||||
"budgetUsage": "预算使用率",
|
||||
"budgetRemaining": "剩余预算"
|
||||
"budgetRemaining": "剩余预算",
|
||||
"code": "编码",
|
||||
"vendor": "云商",
|
||||
"location": "位置",
|
||||
"enabled": "启用",
|
||||
"disabled": "禁用",
|
||||
"allVendors": "全部云商",
|
||||
"selectedRegionCount": "已选择 {{count}} 个区域",
|
||||
"clearSelection": "取消选择",
|
||||
"batchDelete": "批量删除",
|
||||
"batchDeleteRegion": "批量删除区域",
|
||||
"batchDeleteRegionConfirm": "确定删除选中的 {{count}} 个区域吗?此操作不可撤销。",
|
||||
"batchDeletedRegions": "已删除 {{count}} 个区域",
|
||||
"batchDeleteFailed": "批量删除失败",
|
||||
"deleteRegionConfirm": "确定删除「{{name}}」吗?此操作不可撤销。",
|
||||
"regionDeleted": "区域已删除",
|
||||
"regionsSubtitle": "管理各云厂商的区域与接入端点",
|
||||
"noRegionData": "暂无区域数据",
|
||||
"searchRegion": "搜索区域名称或编码...",
|
||||
"noMatchRegion": "暂无匹配区域",
|
||||
"geoLocation": "地理位置",
|
||||
"regionNamePlaceholder": "如:华北-北京",
|
||||
"regionCodePlaceholder": "如:cn-north-1",
|
||||
"locationPlaceholder": "如:中国北京",
|
||||
"endpointPlaceholder": "如:ecs.cn-north-1.aliyuncs.com",
|
||||
"normal": "正常",
|
||||
"stopped": "已停用",
|
||||
"error": "异常",
|
||||
"searchAccount": "搜索账号名称或AccessKey...",
|
||||
"accountsSubtitle": "管理多云平台的访问凭证和账号信息",
|
||||
"noAccountData": "暂无云账号数据",
|
||||
"monthlyFee": "月费用",
|
||||
"serverCount": "服务器数",
|
||||
"keepBlank": "留空保持不变",
|
||||
"monthlyFeeUnit": "月费用 (元)",
|
||||
"saveChanges": "保存修改",
|
||||
"createAccount": "创建账号",
|
||||
"editAccountDesc": "修改账号信息和访问凭证,留空则保持原凭证不变",
|
||||
"addAccountDesc": "录入多云平台的访问凭证,用于资源同步与成本统计",
|
||||
"accountNamePlaceholder": "阿里云生产账号",
|
||||
"platformLabel": "云平台",
|
||||
"allPlatforms": "全部平台",
|
||||
"loadStatsFailed": "加载统计失败",
|
||||
"loadBillingFailed": "加载账单失败",
|
||||
"loadAlertRulesFailed": "加载预警规则失败",
|
||||
"deleteBillingConfirm": "确定删除这条成本记录?",
|
||||
"operationFailed": "操作失败",
|
||||
"overviewStats": "概览统计",
|
||||
"costRecords": "成本记录",
|
||||
"startDate": "开始日期",
|
||||
"endDate": "结束日期",
|
||||
"query": "查询",
|
||||
"billingSubtitle": "多云成本统计、记录与预警",
|
||||
"today": "今日",
|
||||
"thisMonth": "本月",
|
||||
"yearly": "年度",
|
||||
"alertCount": "{{count}} 条",
|
||||
"recordCost": "记录成本",
|
||||
"costAlert": "成本预警",
|
||||
"monthlyAccumulated": "月累计",
|
||||
"current": "当前",
|
||||
"monthVendorDistribution": "本月厂商成本分布",
|
||||
"noDistributionData": "暂无分布数据",
|
||||
"noStatsData": "暂无统计数据",
|
||||
"noCostRecords": "暂无成本记录",
|
||||
"colDate": "日期",
|
||||
"colService": "服务",
|
||||
"colRegion": "区域",
|
||||
"colAccount": "账号",
|
||||
"colCost": "费用",
|
||||
"colDescription": "说明",
|
||||
"noAlertRules": "暂无预警规则",
|
||||
"alertRuleHint": "添加规则后,成本超阈值将在此页管理",
|
||||
"colMetric": "指标",
|
||||
"lastTriggered": "最后触发",
|
||||
"deleteBillingRecord": "删除账单记录",
|
||||
"deleteAlertRule": "删除预警规则",
|
||||
"deleteAlertRuleConfirm": "确定删除此预警规则?",
|
||||
"pending": "待审核",
|
||||
"searchDomain": "搜索域名...",
|
||||
"allStatus": "全部状态",
|
||||
"domainsSubtitle": "管理域名注册信息和DNS解析记录",
|
||||
"noDomainData": "暂无域名数据",
|
||||
"recordCountLabel": "解析记录数",
|
||||
"enableSsl": "启用 SSL",
|
||||
"createDomain": "创建域名",
|
||||
"editDomainDesc": "修改域名注册信息、DNS 配置和 SSL 证书状态",
|
||||
"addDomainDesc": "录入域名信息,包括注册商、DNS 服务商和到期时间",
|
||||
"daysLeft": "{{count}}天"
|
||||
},
|
||||
"agent": {
|
||||
"title": "Agent 管理",
|
||||
|
||||
Reference in new issue
Block a user