From a7ddca8930f41fedcaa6b17848757079edd71147 Mon Sep 17 00:00:00 2001 From: suuuuuu-1 Date: Mon, 13 Jul 2026 12:01:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(i18n):=20=E8=A1=A5=E9=BD=90=20zh=20?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8C=85=20overview=20=E5=92=8C=20misc=20?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - admin/overview.ts: 添加 12 个缺失的翻译 key - newUsersToday, active, ok, err, create - userUsageTrend, claudeMaxSimulation 对象 - misc.ts: 添加 allowUserRefund 翻译 改进中文用户体验,确保所有 UI 文本都有对应的中文翻译 --- frontend/src/i18n/locales/zh/admin/overview.ts | 14 ++++++++++++++ frontend/src/i18n/locales/zh/misc.ts | 1 + 2 files changed, 15 insertions(+) diff --git a/frontend/src/i18n/locales/zh/admin/overview.ts b/frontend/src/i18n/locales/zh/admin/overview.ts index d2638bb79d..125e29cc38 100644 --- a/frontend/src/i18n/locales/zh/admin/overview.ts +++ b/frontend/src/i18n/locales/zh/admin/overview.ts @@ -16,6 +16,7 @@ export default { totalRequests: '总请求数', todayCost: '今日消费', totalCost: '总消费', + newUsersToday: '今日新增用户', actual: '实际', standard: '标准', accountCost: '成本', @@ -27,6 +28,10 @@ export default { performance: '性能指标', avgResponse: '平均响应', averageTime: '平均时间', + active: '活跃', + ok: '正常', + err: '错误', + create: '创建', timeRange: '时间范围', granularity: '粒度', day: '按天', @@ -36,6 +41,7 @@ export default { metricTokens: '按 Token', metricActualCost: '按实际消费', tokenUsageTrend: 'Token 使用趋势', + userUsageTrend: '用户使用趋势(Top 12)', noDataAvailable: '暂无数据', model: '模型', group: '分组', @@ -1013,6 +1019,14 @@ export default { selectAccounts: '选择账号', noAccounts: '此分组暂无账号', loadingAccounts: '加载账号中...', + claudeMaxSimulation: { + title: 'Claude Max 用量模拟', + tooltip: + '启用后,对于没有上游缓存写入用量的 Claude 模型,系统会确定性地将 token 映射为少量输入加 1h 缓存创建,同时保持总 token 不变。', + enabled: '已启用(模拟 1h 缓存)', + disabled: '已禁用', + hint: '仅调整用量计费日志中的 token 类别。不会持久化每个请求的映射状态。' + }, removeRule: '删除规则', noRules: '暂无路由规则', noRulesHint: '添加路由规则以将特定模型请求优先路由到指定账号', diff --git a/frontend/src/i18n/locales/zh/misc.ts b/frontend/src/i18n/locales/zh/misc.ts index 3ee641894e..a670f73a17 100644 --- a/frontend/src/i18n/locales/zh/misc.ts +++ b/frontend/src/i18n/locales/zh/misc.ts @@ -535,6 +535,7 @@ export default { queryRefundStatus: '查询退款状态', refundInfo: '退款信息', refundEnabled: '允许退款', + allowUserRefund: '允许用户退款', alreadyRefunded: '已退款', deductBalance: '扣除余额', deductBalanceHint: '从用户余额中扣回充值金额',