为 WebUI 首页支持 i18n

This commit is contained in:
DrSmoothl
2026-03-07 21:32:09 +08:00
parent 4565bd94b4
commit 2e4be9bd77
5 changed files with 440 additions and 74 deletions

View File

@@ -473,5 +473,96 @@
"sidebarNav": "主导航",
"closeMenu": "关闭菜单",
"navigatedTo": "已导航至 {{page}}"
},
"home": {
"title": "实时监控面板",
"subtitle": "麦麦运行状态和统计数据一览",
"loading": "加载统计数据中...",
"loadingHint": "正在获取麦麦运行数据",
"timeRange": {
"24h": "24小时",
"7d": "7天",
"30d": "30天"
},
"autoRefresh": "自动刷新",
"botStatus": {
"title": "麦麦状态",
"running": "运行中",
"stopped": "已停止",
"uptime": "运行 {{time}}"
},
"quickActions": {
"title": "快速操作",
"restart": "重启麦麦",
"restarting": "重启中...",
"expressionReview": "表达审核",
"viewLogs": "查看日志",
"pluginManage": "插件管理",
"systemSettings": "系统设置"
},
"survey": {
"title": "反馈问卷",
"description": "帮助我们改进产品体验",
"webui": "WebUI 反馈",
"maibot": "麦麦反馈"
},
"stats": {
"totalRequests": "总请求数",
"totalCost": "总花费",
"tokenUsage": "Token消耗",
"avgResponse": "平均响应",
"avgResponseDesc": "API平均耗时",
"onlineTime": "在线时长",
"messageProcessing": "消息处理",
"costEfficiency": "成本效率",
"recentPeriod": "最近{{range}}",
"perHour": "{{value}}/小时",
"noData": "暂无数据",
"replied": "回复 {{num}} 条",
"per100Messages": "每100条消息",
"seconds": "秒",
"hours": "小时",
"days": "天"
},
"charts": {
"tabs": {
"trends": "趋势",
"models": "模型",
"activity": "活动",
"daily": "日统计"
},
"requestTrend": "请求趋势",
"requestTrendDesc": "最近{{hours}}小时的请求量变化",
"costTrend": "花费趋势",
"costTrendDesc": "API调用成本变化",
"tokenUsage": "Token消耗",
"tokenUsageDesc": "Token使用量变化",
"modelDistribution": "模型请求分布",
"modelDistributionDesc": "各模型使用占比 (共 {{count}} 个模型)",
"modelDetails": "模型详细统计",
"modelDetailsDesc": "请求数、花费和性能",
"recentActivity": "最近活动",
"recentActivityDesc": "最新的API调用记录",
"dailyStats": "每日统计",
"dailyStatsDesc": "最近7天的数据汇总",
"requests": "请求数",
"cost": "花费(¥)",
"requestCount": "请求数",
"costLabel": "花费",
"avgTime": "平均耗时",
"timeCost": "耗时",
"status": "状态"
},
"time": {
"hoursMinutes": "{{hours}}小时{{minutes}}分钟"
},
"hitokotoFallback": "人生就像一盒巧克力,你永远不知道下一颗是什么味道。",
"hitokotoFallbackFrom": "阿甘正传",
"unknownSource": "未知",
"ariaLabel": {
"requestTrend": "每小时请求量趋势图,显示最近若干小时的请求次数变化",
"costTrend": "API花费趋势图显示最近若干小时的API调用成本变化",
"tokenUsage": "Token消耗趋势图显示最近若干小时的Token使用量变化"
}
}
}