{
  "title": "钩子管理器",
  "description": "管理自动化工作流的 CLI 钩子",
  "allTools": "所有工具",
  "trigger": {
    "SessionStart": "会话开始",
    "UserPromptSubmit": "用户提交提示",
    "PreToolUse": "工具使用前",
    "PostToolUse": "工具使用后",
    "Stop": "停止",
    "Notification": "通知",
    "SubagentStart": "子代理启动",
    "SubagentStop": "子代理停止",
    "PreCompact": "压缩前",
    "SessionEnd": "会话结束",
    "PostToolUseFailure": "工具使用失败后",
    "PermissionRequest": "权限请求"
  },
  "form": {
    "name": "钩子名称",
    "namePlaceholder": "my-hook",
    "description": "描述",
    "descriptionPlaceholder": "这个钩子是做什么的？",
    "trigger": "触发事件",
    "matcher": "工具匹配器",
    "matcherPlaceholder": "例如：Write|Edit（可选）",
    "matcherHelp": "用于匹配工具名称的正则表达式。留空以匹配所有工具。",
    "command": "命令",
    "commandPlaceholder": "echo 'Hello World'",
    "commandHelp": "要执行的 Shell 命令。可以使用环境变量，如 $CLAUDE_TOOL_NAME。"
  },
  "validation": {
    "nameRequired": "钩子名称为必填项",
    "nameInvalid": "钩子名称只能包含字母、数字、连字符和下划线",
    "triggerRequired": "触发事件为必填项",
    "commandRequired": "命令为必填项"
  },
  "actions": {
    "add": "添加钩子",
    "addFirst": "创建您的第一个钩子",
    "edit": "编辑",
    "delete": "删除",
    "deleteConfirm": "确定要删除钩子 \"{hookName}\" 吗？",
    "enable": "启用",
    "disable": "禁用",
    "expand": "展开详情",
    "collapse": "折叠详情",
    "expandAll": "全部展开",
    "collapseAll": "全部折叠"
  },
  "dialog": {
    "createTitle": "创建钩子",
    "editTitle": "编辑钩子 \"{hookName}\""
  },
  "stats": {
    "total": "共 {count} 个",
    "enabled": "{count} 个已启用",
    "count": "{enabled}/{total} 个钩子"
  },
  "filters": {
    "searchPlaceholder": "按名称、描述或触发事件搜索钩子..."
  },
  "empty": {
    "title": "未找到钩子",
    "description": "创建您的第一个钩子以自动化 CLI 工作流",
    "noHooksInEvent": "此事件未配置钩子"
  },
  "quickTemplates": {
    "title": "快速安装模板"
  },
  "templates": {
    "title": "快速安装模板",
    "description": "常见钩子模式的一键安装",
    "categories": {
      "notification": "通知",
      "indexing": "索引",
      "automation": "自动化",
      "utility": "实用工具"
    },
    "templates": {
      "session-start-notify": {
        "name": "会话启动通知",
        "description": "当新工作流会话创建时通知仪表盘"
      },
      "session-state-watch": {
        "name": "会话状态监控",
        "description": "监控会话元数据文件变更 (workflow-session.json)"
      },
      "stop-notify": {
        "name": "停止通知",
        "description": "Claude 完成响应时通知仪表盘"
      },
      "auto-format-on-write": {
        "name": "写入后自动格式化",
        "description": "Claude 写入或编辑文件后自动格式化"
      },
      "auto-lint-on-write": {
        "name": "写入后自动检查",
        "description": "Claude 写入或编辑文件后自动执行 lint 检查"
      },
      "block-sensitive-files": {
        "name": "阻止敏感文件修改",
        "description": "阻止修改敏感文件（.env、密钥、凭证）"
      },
      "git-auto-stage": {
        "name": "Git 自动暂存",
        "description": "Claude 完成响应时自动暂存所有已修改文件"
      },
      "post-edit-index": {
        "name": "编辑后索引",
        "description": "文件修改时通知索引服务"
      },
      "session-end-summary": {
        "name": "会话结束摘要",
        "description": "会话结束时发送摘要到仪表盘"
      },
      "project-state-inject": {
        "name": "项目状态注入",
        "description": "会话启动时注入项目约束和最近开发历史"
      },
      "memory-v2-extract": {
        "name": "Memory V2 提取",
        "description": "会话结束时触发第一阶段提取（空闲期后）"
      },
      "memory-v2-auto-consolidate": {
        "name": "Memory V2 自动合并",
        "description": "提取作业完成后触发第二阶段合并"
      },
      "memory-sync-dashboard": {
        "name": "Memory 同步仪表盘",
        "description": "变更时同步 Memory V2 状态到仪表盘"
      },
      "memory-auto-compress": {
        "name": "自动内存压缩",
        "description": "当条目超过阈值时自动压缩内存"
      },
      "memory-preview-extract": {
        "name": "内存预览与提取",
        "description": "预览提取队列并提取符合条件的会话"
      },
      "memory-status-check": {
        "name": "内存状态检查",
        "description": "检查内存提取和合并状态"
      }
    },
    "actions": {
      "install": "安装",
      "installed": "已安装"
    }
  },
  "wizards": {
    "title": "钩子向导",
    "launch": "向导",
    "sectionTitle": "钩子向导",
    "sectionDescription": "通过引导式分步向导创建钩子",
    "platform": {
      "detected": "检测到的平台",
      "compatible": "兼容",
      "incompatible": "不兼容",
      "compatibilityError": "此钩子与您的平台不兼容",
      "compatibilityWarning": "某些功能可能在您的平台上无法正常工作"
    },
    "steps": {
      "triggerEvent": "此钩子将触发于",
      "review": {
        "title": "检查配置",
        "description": "创建前检查您的钩子配置",
        "hookType": "钩子类型",
        "trigger": "触发事件",
        "platform": "平台",
        "commandPreview": "命令预览",
        "installTo": "安装到",
        "scopeProject": "项目",
        "scopeGlobal": "全局"
      }
    },
    "navigation": {
      "previous": "上一步",
      "next": "下一步",
      "create": "创建钩子",
      "creating": "创建中..."
    },
    "memoryUpdate": {
      "title": "记忆更新向导",
      "description": "配置钩子以在会话结束时更新 CLAUDE.md",
      "shortDescription": "自动更新 CLAUDE.md",
      "cliTool": "CLI 工具",
      "cliToolHelp": "用于生成 CLAUDE.md 的 CLI 工具",
      "threshold": "阈值（路径数）",
      "thresholdHelp": "触发批量更新的路径数量（1-20）",
      "timeout": "超时时间（秒）",
      "timeoutHelp": "超过此时间自动刷新队列（60-1800）"
    },
    "dangerProtection": {
      "title": "危险操作保护向导",
      "description": "配置危险操作的确认钩子",
      "shortDescription": "确认危险操作",
      "selectProtections": "选择要启用的保护类型",
      "selectedProtections": "已选保护",
      "options": {
        "bashConfirm": "危险命令",
        "bashConfirmDesc": "执行 rm -rf、shutdown、kill、format 等命令前确认",
        "fileProtection": "敏感文件",
        "fileProtectionDesc": "阻止修改 .env、.git/、密钥等敏感文件",
        "gitDestructive": "Git 操作",
        "gitDestructiveDesc": "强制推送、硬重置、删除分支前确认",
        "networkConfirm": "网络访问",
        "networkConfirmDesc": "执行 curl、wget、ssh、WebFetch 请求前确认",
        "systemPaths": "系统路径",
        "systemPathsDesc": "阻止/确认对 /etc、/usr、C:\\Windows 的操作",
        "permissionChange": "权限变更",
        "permissionChangeDesc": "执行 chmod、chown、icacls 操作前确认"
      }
    },
    "skillContext": {
      "title": "SKILL 上下文向导",
      "description": "配置钩子以根据提示关键词加载 SKILL",
      "shortDescription": "根据关键词自动加载 SKILL",
      "loadingSkills": "正在加载可用的技能...",
      "selectSkill": "选择技能",
      "addPair": "添加技能配置",
      "keywordMappings": "关键词映射",
      "keywordsPlaceholder": "react,workflow,api",
      "mode": "检测模式",
      "modeKeyword": "关键词匹配",
      "modeKeywordDesc": "检测到关键词时加载对应 SKILL",
      "modeAuto": "自动检测",
      "modeAutoDesc": "自动检测并按名称加载 SKILL",
      "autoDescription": "自动检测模式将扫描用户提示中的 SKILL 名称，并自动加载匹配的上下文。所有可用技能如下所示。"
    }
  }
}
