feat(i18n): Implement internationalization for Channels, Skills, Setup, and Models pages

This commit is contained in:
DigHuang
2026-03-10 15:51:45 +08:00
Unverified
parent d9ae0f3263
commit 17e6ab9149
20 changed files with 175 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
{
"title": "消息频道",
"subtitle": "管理您的消息频道和连接",
"subtitle": "连接到消息平台。",
"refresh": "刷新",
"addChannel": "添加频道",
"stats": {
@@ -8,7 +8,10 @@
"connected": "已连接",
"disconnected": "未连接"
},
"gatewayWarning": "网关服务未运行,频道无法连接。",
"gatewayWarning": "网关未运行。未启用网关时无法管理频道。",
"availableChannels": "可用频道",
"supportedChannels": "支持的频道",
"pluginBadge": "插件",
"available": "可用频道",
"availableDesc": "连接一个新的频道",
"configured": "已配置频道",
@@ -16,7 +19,6 @@
"configuredBadge": "已配置",
"deleteConfirm": "确定要删除此频道吗?",
"showAll": "显示全部",
"pluginBadge": "插件",
"toast": {
"whatsappConnected": "WhatsApp 连接成功",
"whatsappFailed": "WhatsApp 连接失败: {{error}}",

View File

@@ -7,7 +7,10 @@
"channels": "频道",
"dashboard": "仪表盘",
"settings": "设置",
"devConsole": "开发者控制台"
"devConsole": "开发者控制台",
"models": "模型",
"deleteSessionConfirm": "确定要删除对话 \"{{label}}\" 吗?",
"openClawPage": "OpenClaw 页面"
},
"actions": {
"save": "保存",
@@ -52,4 +55,4 @@
"notRunningDesc": "OpenClaw 网关需要运行才能使用此功能。它将自动启动,或者您可以从设置中启动。",
"warning": "网关未运行。"
}
}
}

View File

@@ -9,6 +9,10 @@
"enabledOf": "{{enabled}} / {{total}} 已启用",
"sinceRestart": "自上次重启",
"gatewayNotRunning": "网关未运行",
"models": {
"title": "模型",
"subtitle": "管理您的 AI 提供商并监控 Token 用量。"
},
"quickActions": {
"title": "快捷操作",
"description": "常用任务和快捷方式",
@@ -53,4 +57,4 @@
"cacheWrite": "缓存写入 {{value}}",
"cost": "费用 ${{amount}}"
}
}
}

View File

@@ -115,5 +115,27 @@
"skipStep": "跳过此步骤",
"skipSetup": "跳过设置",
"getStarted": "开始使用"
},
"defaultSkills": {
"opencode": {
"name": "OpenCode",
"description": "AI 编程助手后端"
},
"python-env": {
"name": "Python 环境",
"description": "技能所需的 Python 运行时"
},
"code-assist": {
"name": "代码辅助",
"description": "代码分析与建议"
},
"file-tools": {
"name": "文件工具",
"description": "文件操作与管理"
},
"terminal": {
"name": "终端",
"description": "Shell 命令执行"
}
}
}

View File

@@ -48,7 +48,10 @@
"saveConfig": "保存配置",
"configSaved": "配置已保存",
"openManual": "打开手册",
"configurable": "可配置"
"configurable": "可配置",
"uninstall": "卸载",
"enable": "启用",
"disable": "禁用"
},
"toast": {
"enabled": "技能已启用",
@@ -83,4 +86,4 @@
"emptyPrompt": "搜索新技能以扩展您的能力。",
"searchError": "ClawHub 搜索失败。请检查您的连接或安装。"
}
}
}