mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-14 17:41:22 +08:00
- Implemented exportSettings and importSettings APIs for CLI settings. - Added hooks useExportSettings and useImportSettings for managing export/import operations in the frontend. - Updated SettingsPage to include buttons for exporting and importing CLI settings. - Enhanced backend to handle export and import requests, including validation and conflict resolution. - Introduced new data structures for exported settings and import options. - Updated localization files to support new export/import features. - Refactored CLI tool configurations to remove hardcoded model defaults, allowing dynamic model retrieval.
256 lines
9.0 KiB
JSON
256 lines
9.0 KiB
JSON
{
|
||
"title": "设置",
|
||
"description": "配置仪表板偏好设置和 CLI 工具",
|
||
"sections": {
|
||
"appearance": "外观",
|
||
"cliTools": "CLI 工具",
|
||
"display": "显示设置",
|
||
"language": "语言",
|
||
"responseLanguage": "回复语言设置",
|
||
"systemStatus": "系统状态",
|
||
"hooks": "Git 钩子",
|
||
"rules": "规则",
|
||
"about": "关于",
|
||
"a2ui": "A2UI 偏好设置"
|
||
},
|
||
"appearance": {
|
||
"title": "外观",
|
||
"theme": "主题",
|
||
"themeOptions": {
|
||
"light": "浅色",
|
||
"dark": "深色",
|
||
"system": "跟随系统"
|
||
},
|
||
"description": "选择您喜欢的颜色主题",
|
||
"systemFollow": "系统跟随",
|
||
"systemFollowDesc": "使用系统的深色/浅色模式设置"
|
||
},
|
||
"cliTools": {
|
||
"title": "CLI 工具",
|
||
"description": "配置 CLI 工具设置,当前默认工具:",
|
||
"enabled": "已启用",
|
||
"disabled": "已禁用",
|
||
"default": "默认",
|
||
"setDefault": "设为默认",
|
||
"primaryModel": "主模型",
|
||
"secondaryModel": "辅助模型",
|
||
"expand": "展开详情",
|
||
"envFile": "环境变量文件 (.env)",
|
||
"envFilePlaceholder": "例如:~/.gemini/.env",
|
||
"envFileHint": "CLI 执行前加载的 .env 文件路径,用于设置 API Key 等环境变量",
|
||
"saveToConfig": "保存到配置文件",
|
||
"saving": "保存中...",
|
||
"configSaved": "配置已保存到 ~/.claude/cli-tools.json",
|
||
"configSaveError": "保存配置失败",
|
||
"effort": "思考力度",
|
||
"effortHint": "控制 Claude 会话的思考力度。默认:high。",
|
||
"effortLow": "低",
|
||
"effortMedium": "中",
|
||
"effortHigh": "高"
|
||
},
|
||
"display": {
|
||
"title": "显示设置",
|
||
"showCompletedTasks": "显示已完成任务",
|
||
"showCompletedTasksDesc": "在任务列表中显示已完成的任务",
|
||
"show": "显示",
|
||
"hide": "隐藏"
|
||
},
|
||
"language": {
|
||
"title": "语言",
|
||
"description": "选择您的首选语言",
|
||
"english": "English",
|
||
"chinese": "中文",
|
||
"displayLanguage": "显示语言",
|
||
"chooseLanguage": "选择界面的首选语言"
|
||
},
|
||
"responseLanguage": {
|
||
"title": "回复语言设置",
|
||
"chineseClaude": "中文回复",
|
||
"chineseClaudeDesc": "在 ~/.claude/CLAUDE.md 中启用中文回复准则",
|
||
"chineseCodex": "中文回复",
|
||
"chineseCodexDesc": "在 ~/.codex/AGENTS.md 中启用中文回复准则",
|
||
"windowsPlatform": "Windows 平台规范",
|
||
"windowsPlatformDesc": "在全局 CLAUDE.md 中启用 Windows 路径格式规范",
|
||
"cliEnhancement": "CLI 调用增强",
|
||
"cliEnhancementDesc": "为 Codex 启用多 CLI 工具调用功能",
|
||
"cliEnhancementHint": "配置文件变更后,点击刷新按钮更新内容",
|
||
"refreshConfig": "刷新配置",
|
||
"migrationWarning": "检测到旧格式,请关闭后重新启用以迁移",
|
||
"enabled": "已启用",
|
||
"disabled": "已禁用",
|
||
"export": "导出",
|
||
"import": "导入",
|
||
"exporting": "导出中...",
|
||
"importing": "导入中...",
|
||
"exportImportHint": "导出或导入 CLI 设置配置",
|
||
"exportSuccess": "设置导出成功",
|
||
"exportError": "导出设置失败",
|
||
"importSuccess": "设置导入成功(已导入 {imported} 项,跳过 {skipped} 项)",
|
||
"importError": "导入设置失败",
|
||
"importInvalidFile": "请选择有效的 JSON 文件",
|
||
"importInvalidJson": "文件 JSON 格式无效",
|
||
"importInvalidStructure": "设置文件结构无效"
|
||
},
|
||
"systemStatus": {
|
||
"title": "CCW 安装",
|
||
"installations": "个安装",
|
||
"noInstallations": "未检测到安装",
|
||
"installPrompt": "运行 ccw install 进行安装",
|
||
"global": "Global",
|
||
"path": "Path",
|
||
"version": "版本",
|
||
"files": "files",
|
||
"upgrade": "升级",
|
||
"upgrading": "升级中...",
|
||
"refresh": "刷新",
|
||
"ccwInstall": "CCW 安装状态",
|
||
"installed": "已安装",
|
||
"incomplete": "不完整",
|
||
"notInstalled": "未安装",
|
||
"missingFiles": "缺失文件",
|
||
"runToFix": "运行以下命令修复",
|
||
"toolStatus": "工具可用性",
|
||
"available": "可用",
|
||
"unavailable": "不可用",
|
||
"checking": "检测中..."
|
||
},
|
||
"dataRefresh": {
|
||
"title": "数据刷新",
|
||
"autoRefresh": "自动刷新",
|
||
"autoRefreshDesc": "定期自动刷新数据",
|
||
"refreshInterval": "刷新间隔",
|
||
"refreshIntervalDesc": "刷新数据的频率",
|
||
"enabled": "已启用",
|
||
"disabled": "已禁用"
|
||
},
|
||
"notifications": {
|
||
"title": "通知",
|
||
"enableNotifications": "启用通知",
|
||
"enableNotificationsDesc": "显示工作流事件的通知",
|
||
"soundEffects": "音效",
|
||
"soundEffectsDesc": "播放通知音效",
|
||
"on": "开启",
|
||
"off": "关闭"
|
||
},
|
||
"remoteNotifications": {
|
||
"title": "远程通知",
|
||
"description": "当事件发生时,发送通知到 Discord、Telegram 或自定义 Webhook 等外部平台。",
|
||
"enabled": "已启用",
|
||
"disabled": "已禁用",
|
||
"platforms": "平台配置",
|
||
"events": "事件触发器",
|
||
"selectPlatforms": "选择此事件要通知的平台:",
|
||
"noPlatforms": "无平台",
|
||
"configured": "已配置",
|
||
"save": "保存",
|
||
"saving": "保存中...",
|
||
"saved": "配置已保存",
|
||
"saveError": "保存配置失败",
|
||
"reset": "重置为默认值",
|
||
"resetConfirm": "确定要将所有远程通知设置重置为默认值吗?",
|
||
"resetSuccess": "设置已重置为默认值",
|
||
"resetError": "重置设置失败",
|
||
"testConnection": "测试连接",
|
||
"testSuccess": "测试通知发送成功",
|
||
"testFailed": "测试通知发送失败",
|
||
"testError": "发送测试通知失败",
|
||
"discord": {
|
||
"webhookUrl": "Webhook URL",
|
||
"webhookUrlHint": "在 Discord 频道设置中创建 Webhook",
|
||
"username": "自定义用户名(可选)"
|
||
},
|
||
"telegram": {
|
||
"botToken": "Bot Token",
|
||
"botTokenHint": "从 Telegram 的 @BotFather 获取",
|
||
"chatId": "Chat ID",
|
||
"chatIdHint": "用户或群组 Chat ID(使用 @userinfobot 查找)"
|
||
},
|
||
"webhook": {
|
||
"url": "Webhook URL",
|
||
"method": "HTTP 方法",
|
||
"headers": "自定义请求头(JSON)",
|
||
"headersHint": "可选的 JSON 对象,包含自定义请求头"
|
||
},
|
||
"feishu": {
|
||
"webhookUrl": "Webhook URL",
|
||
"webhookUrlHint": "从飞书机器人设置中获取",
|
||
"useCard": "使用卡片格式",
|
||
"useCardHint": "以富交互卡片形式发送",
|
||
"title": "卡片标题(可选)"
|
||
},
|
||
"dingtalk": {
|
||
"webhookUrl": "Webhook URL",
|
||
"webhookUrlHint": "从钉钉机器人设置中获取",
|
||
"keywords": "安全关键词",
|
||
"keywordsHint": "逗号分隔的关键词,用于安全校验"
|
||
},
|
||
"wecom": {
|
||
"webhookUrl": "Webhook URL",
|
||
"webhookUrlHint": "从企业微信机器人设置中获取",
|
||
"mentionedList": "提醒用户",
|
||
"mentionedListHint": "要提醒的用户 ID,使用 '@all' 提醒所有人"
|
||
},
|
||
"email": {
|
||
"host": "SMTP 服务器",
|
||
"hostHint": "例如:smtp.gmail.com",
|
||
"port": "端口",
|
||
"secure": "使用 TLS",
|
||
"username": "用户名",
|
||
"password": "密码",
|
||
"from": "发件人邮箱",
|
||
"to": "收件人",
|
||
"toHint": "逗号分隔的邮箱地址"
|
||
}
|
||
},
|
||
"versionCheck": {
|
||
"title": "版本更新",
|
||
"currentVersion": "当前版本",
|
||
"latestVersion": "最新版本",
|
||
"checkNow": "立即检查",
|
||
"checking": "检查中...",
|
||
"autoCheck": "自动检查更新",
|
||
"autoCheckDesc": "每小时自动检查是否有新版本",
|
||
"upToDate": "已是最新版本",
|
||
"updateAvailable": "有新版本可用",
|
||
"updateCommand": "更新命令",
|
||
"viewRelease": "查看更新",
|
||
"lastChecked": "上次检查",
|
||
"checkFailed": "检查失败",
|
||
"never": "从未"
|
||
},
|
||
"about": {
|
||
"title": "关于",
|
||
"version": "版本",
|
||
"description": "Claude Code Workflow 仪表板"
|
||
},
|
||
"reset": {
|
||
"title": "重置",
|
||
"description": "将所有用户偏好重置为默认值。此操作无法撤销。",
|
||
"confirm": "确定要将所有设置重置为默认值吗?",
|
||
"button": "重置为默认值"
|
||
},
|
||
"a2ui": {
|
||
"title": "A2UI 偏好设置",
|
||
"dialogStyle": "对话框风格",
|
||
"dialogStyleDesc": "选择 A2UI 对话框的显示方式",
|
||
"styleModal": "弹窗",
|
||
"styleModalDesc": "居中显示",
|
||
"styleDrawer": "抽屉",
|
||
"styleDrawerDesc": "侧边面板",
|
||
"styleSheet": "底部弹出",
|
||
"styleSheetDesc": "从底部弹出",
|
||
"styleFullscreen": "全屏",
|
||
"styleFullscreenDesc": "全屏显示",
|
||
"smartMode": "智能模式",
|
||
"smartModeDesc": "根据问题类型自动选择风格",
|
||
"autoSelectionDuration": "自动选择倒计时",
|
||
"autoSelectionDurationDesc": "自动选择默认选项前的倒计时",
|
||
"pauseOnInteraction": "交互时暂停",
|
||
"pauseOnInteractionDesc": "与对话框交互时暂停倒计时",
|
||
"soundNotification": "声音提醒",
|
||
"soundNotificationDesc": "自动提交前 3 秒播放提示音",
|
||
"showToolbarButton": "显示工具栏按钮",
|
||
"showToolbarButtonDesc": "在工具栏显示 A2UI 快速操作按钮"
|
||
}
|
||
}
|