{
  "pageTitle": "规范设置",
  "pageDescription": "管理规范注入、钩子和系统设置",
  "tabProjectSpecs": "项目规范",
  "tabPersonalSpecs": "个人",
  "tabHooks": "钩子",
  "tabInjection": "注入控制",
  "tabSettings": "设置",
  "searchPlaceholder": "搜索规范...",
  "rebuildIndex": "重建索引",
  "loading": "加载中...",
  "noSpecs": "未找到规范。请在 .ccw/ 目录中创建规范文件。",
  "required": "必读",

  "dimension": {
    "specs": "项目规范",
    "personal": "个人规范",
    "roadmap": "路线图",
    "changelog": "变更日志"
  },

  "scope": {
    "all": "全部",
    "global": "全局",
    "project": "项目"
  },
  "filterByScope": "按范围筛选：",
  "filterByCategory": "工作流阶段：",

  "category": {
    "all": "全部",
    "general": "通用",
    "exploration": "探索",
    "planning": "规划",
    "execution": "执行"
  },

  "recommendedHooks": "推荐钩子",
  "recommendedHooksDesc": "一键安装系统预设的规范注入钩子",
  "installAll": "安装所有推荐钩子",
  "installAllHooks": "安装所有钩子",
  "allHooksInstalled": "已安装所有钩子",
  "hooksInstalled": "已安装",
  "manageHooks": "管理钩子",
  "hookEvent": "事件",
  "hookScope": "范围",
  "install": "安装",
  "installed": "已安装",
  "installing": "安装中...",

  "installedHooks": "已安装钩子",
  "installedHooksDesc": "管理已安装的钩子配置",
  "searchHooks": "搜索钩子...",
  "noHooks": "未安装钩子。请安装上方的推荐钩子。",

  "actions": {
    "view": "查看内容",
    "edit": "编辑",
    "delete": "删除",
    "reset": "重置",
    "save": "保存",
    "saving": "保存中..."
  },

  "status": {
    "enabled": "已启用",
    "disabled": "已禁用"
  },

  "readMode": {
    "required": "必读",
    "optional": "选读"
  },

  "priority": {
    "critical": "关键",
    "high": "高",
    "medium": "中",
    "low": "低"
  },

  "spec": {
    "edit": "编辑规范",
    "toggle": "切换状态",
    "delete": "删除规范",
    "deleteConfirm": "确定要删除此规范吗？",
    "title": "规范标题",
    "keywords": "关键词",
    "keywordsPlaceholder": "输入关键词，用逗号分隔",
    "readMode": "读取模式",
    "priority": "优先级",
    "file": "文件路径"
  },

  "hook": {
    "install": "安装",
    "uninstall": "卸载",
    "edit": "编辑钩子",
    "toggle": "切换状态",
    "delete": "删除钩子",
    "enabled": "已启用",
    "disabled": "已禁用",
    "installed": "已安装",
    "notInstalled": "未安装",
    "scope": {
      "global": "全局",
      "project": "项目"
    },
    "event": {
      "SessionStart": "会话开始",
      "UserPromptSubmit": "提示词提交",
      "SessionEnd": "会话结束"
    },
    "name": "钩子名称",
    "eventLabel": "触发事件",
    "command": "执行命令",
    "scopeLabel": "作用域",
    "timeout": "超时时间(ms)",
    "failMode": "失败模式",
    "failModeContinue": "继续",
    "failModeBlock": "阻止",
    "failModeWarn": "警告"
  },

  "hooks": {
    "dialog": {
      "createTitle": "创建钩子",
      "editTitle": "编辑钩子",
      "description": "配置钩子的触发事件、执行命令和其他参数。"
    },
    "fields": {
      "name": "钩子名称",
      "event": "触发事件",
      "scope": "作用域",
      "command": "执行命令",
      "description": "描述",
      "timeout": "超时时间",
      "timeoutUnit": "毫秒",
      "failMode": "失败处理模式"
    },
    "placeholders": {
      "name": "输入钩子名称",
      "event": "选择触发事件",
      "command": "输入要执行的命令",
      "description": "输入钩子描述（可选）"
    },
    "events": {
      "sessionStart": "会话开始",
      "userPromptSubmit": "提示词提交",
      "sessionEnd": "会话结束"
    },
    "scope": {
      "global": "全局",
      "project": "项目"
    },
    "failModes": {
      "continue": "继续执行",
      "warn": "显示警告",
      "block": "阻止操作"
    },
    "validation": {
      "nameRequired": "名称为必填项",
      "commandRequired": "命令为必填项",
      "timeoutMin": "最小超时时间为 1000ms",
      "timeoutMax": "最大超时时间为 300000ms"
    }
  },

  "hints": {
    "hookEvents": "选择钩子触发的事件类型",
    "hookScope": "全局钩子应用于所有项目，项目钩子仅当前项目",
    "hookCommand": "执行的命令，可使用环境变量",
    "hookTimeout": "命令执行的超时时间",
    "hookFailMode": "命令执行失败时的处理方式"
  },

  "common": {
    "cancel": "取消",
    "save": "保存",
    "delete": "删除",
    "edit": "编辑",
    "reset": "重置",
    "confirm": "确认",
    "close": "关闭"
  },

  "content": {
    "edit": "编辑",
    "view": "查看",
    "metadata": "元数据",
    "markdownContent": "Markdown 内容",
    "noContent": "无可用内容",
    "editHint": "编辑完整的 markdown 内容包括 frontmatter。对 frontmatter 的更改将反映在规范元数据中。",
    "placeholder": "# 规范标题\n\n内容在这里..."
  },

  "injection": {
    "title": "注入控制",
    "statusTitle": "当前注入状态",
    "settingsTitle": "注入控制设置",
    "settingsDescription": "配置如何将规范内容注入到 AI 上下文中。",
    "currentLength": "当前长度",
    "maxLength": "最大注入长度（字符）",
    "maxLengthHelp": "推荐值：4000-10000。过大会消耗过多上下文，过小可能截断重要规范。",
    "warnThreshold": "警告阈值",
    "warnThresholdLabel": "警告阈值（字符）",
    "warnThresholdHelp": "当注入长度超过此值时显示警告。",
    "percentage": "使用率",
    "truncateOnExceed": "超出时截断",
    "truncateHelp": "当内容超出最大长度时自动截断。",
    "overLimit": "已超出限制",
    "overLimitDescription": "当前注入内容已超出最大长度限制 {max} 字符，超出部分将被截断。",
    "warning": "接近限制",
    "normal": "正常",
    "characters": "字符",
    "chars": "字符",
    "lines": "行",
    "maxLimit": "最大",
    "quickPresets": "快速预设：",
    "statsInfo": "统计信息",
    "requiredLength": "必读规范长度：",
    "matchedLength": "关键词匹配长度：",
    "remaining": "剩余空间：",
    "loadError": "加载统计数据失败",
    "saveSuccess": "设置已保存",
    "saveError": "保存设置失败",
    "filesList": "注入文件列表",
    "files": "个文件",
    "noFiles": "没有匹配此命令的文件",
    "loadingPreview": "加载预览中...",
    "commandPreview": "命令注入预览",
    "commandPreviewDesc": "预览不同 CLI 命令将注入的内容"
  },

  "commandPreview": {
    "default": {
      "label": "全部类别",
      "description": "加载所有必读规范，不进行类别过滤"
    },
    "exploration": {
      "label": "探索",
      "description": "代码探索、分析、调试相关规范"
    },
    "planning": {
      "label": "规划",
      "description": "任务规划、需求相关规范"
    },
    "execution": {
      "label": "执行",
      "description": "实现、测试、部署相关规范"
    },
    "general": {
      "label": "通用",
      "description": "适用于所有阶段的规范"
    }
  },

  "priority": {
    "critical": "关键",
    "high": "高",
    "medium": "中",
    "low": "低"
  },

  "settings": {
    "title": "全局设置",
    "description": "配置个人规范默认值和系统设置",
    "personalSpecDefaults": "个人规范默认值",
    "personalSpecDefaultsDesc": "创建新的个人规范时将应用这些设置",
    "defaultReadMode": "默认读取模式",
    "defaultReadModeHelp": "新创建的个人规范的默认读取模式",
    "selectReadMode": "选择读取模式",
    "autoEnable": "自动启用新规范",
    "autoEnableDescription": "新创建的个人规范默认设置为必读（readMode=required），自动加入注入上下文",
    "specStatistics": "规范统计",
    "totalSpecs": "总计：{count} 个规范文件",
    "devProgressInjection": "开发进度注入",
    "devProgressInjectionDesc": "控制如何将 project-tech.json 中的开发进度注入到 AI 上下文中",
    "enableDevProgress": "启用注入",
    "enableDevProgressDesc": "在 AI 上下文中包含开发历史记录",
    "maxEntries": "每类最大条目数",
    "maxEntriesDesc": "每个类别包含的最大条目数 (1-50)",
    "includeCategories": "包含的类别",
    "categoriesDesc": "点击切换类别包含状态",
    "devProgressStats": "共 {total} 条记录，来自 {sessions} 个会话，最后更新：{date}",
    "devProgressStatsNoDate": "共 {total} 条记录，来自 {sessions} 个会话"
  },

  "devCategory": {
    "feature": "新功能",
    "enhancement": "增强",
    "bugfix": "修复",
    "refactor": "重构",
    "docs": "文档"
  },

  "dialog": {
    "cancel": "取消",
    "save": "保存",
    "close": "关闭",
    "editSpec": "编辑规范",
    "editHook": "编辑钩子",
    "confirmDelete": "确认删除",
    "specTitle": "规范标题",
    "keywords": "关键词",
    "readMode": "读取模式",
    "priority": "优先级",
    "hookName": "钩子名称",
    "hookEvent": "触发事件",
    "hookCommand": "执行命令",
    "hookScope": "作用域",
    "hookTimeout": "超时时间(ms)",
    "hookFailMode": "失败模式",
    "editTitle": "编辑规范：{title}",
    "editDescription": "修改规范元数据和设置。"
  },

  "form": {
    "readMode": "读取模式",
    "priority": "优先级",
    "keywords": "关键词",
    "keywordsPlaceholder": "输入关键词，按回车或逗号添加",
    "title": "标题",
    "titlePlaceholder": "输入规范标题",
    "addKeyword": "添加关键词",
    "keywordsHint": "关键词有助于将选读规范匹配到相关任务",
    "fileInfo": "文件：{file}",
    "saving": "保存中..."
  },

  "validation": {
    "titleRequired": "标题为必填项"
  },

  "hooks": {
    "installSuccess": "钩子安装成功",
    "installError": "钩子安装失败",
    "installAllSuccess": "所有钩子安装成功"
  }
}
