{
  "title": "CodexLens",
  "description": "语义代码搜索引擎",
  "bootstrap": "引导安装",
  "bootstrapping": "安装中...",
  "uninstall": "卸载",
  "uninstalling": "卸载中...",
  "confirmUninstall": "确定要卸载 CodexLens 吗？此操作无法撤销。",
  "confirmUninstallTitle": "确认卸载",
  "notInstalled": "CodexLens 尚未安装",
  "comingSoon": "即将推出",
  "tabs": {
    "overview": "概览",
    "settings": "设置",
    "models": "模型",
    "search": "搜索",
    "advanced": "高级"
  },
  "overview": {
    "status": {
      "installation": "安装状态",
      "ready": "就绪",
      "notReady": "未就绪",
      "version": "版本",
      "indexPath": "索引路径",
      "indexCount": "索引数量"
    },
    "notInstalled": {
      "title": "CodexLens 未安装",
      "message": "请先安装 CodexLens 以使用语义代码搜索功能。"
    },
    "actions": {
      "title": "快速操作",
      "ftsFull": "FTS 全量",
      "ftsFullDesc": "重建全文索引",
      "ftsIncremental": "FTS 增量",
      "ftsIncrementalDesc": "增量更新全文索引",
      "vectorFull": "向量全量",
      "vectorFullDesc": "重建向量索引",
      "vectorIncremental": "向量增量",
      "vectorIncrementalDesc": "增量更新向量索引"
    },
    "venv": {
      "title": "Python 虚拟环境详情",
      "pythonVersion": "Python 版本",
      "venvPath": "虚拟环境路径",
      "lastCheck": "最后检查时间"
    }
  },
  "index": {
    "operationComplete": "索引操作完成",
    "operationFailed": "索引操作失败",
    "noProject": "未选择项目",
    "noProjectDesc": "请打开一个项目以执行索引操作。",
    "starting": "正在启动索引操作...",
    "cancelFailed": "取消操作失败",
    "unknownError": "发生未知错误",
    "complete": "完成",
    "failed": "失败",
    "cancelled": "已取消",
    "inProgress": "进行中"
  },
  "semantic": {
    "installTitle": "安装语义搜索",
    "installDescription": "安装 FastEmbed 和语义搜索依赖，支持 GPU 加速。",
    "installInfo": "GPU 加速需要兼容的硬件。CPU 模式在所有系统上都可用，但速度较慢。",
    "gpu": {
      "cpu": "CPU 模式",
      "cpuDesc": "通用兼容，处理较慢。适用于所有系统。",
      "directml": "DirectML（Windows GPU）",
      "directmlDesc": "最适合带 AMD/Intel GPU 的 Windows 系统。推荐大多数用户使用。",
      "cuda": "CUDA（NVIDIA GPU）",
      "cudaDesc": "NVIDIA GPU 性能最佳。需要 CUDA 工具包。"
    },
    "recommended": "推荐",
    "install": "安装",
    "installing": "安装中...",
    "installSuccess": "安装完成",
    "installSuccessDesc": "语义搜索已成功安装，使用 {mode} 模式",
    "installFailed": "安装失败",
    "unknownError": "发生未知错误"
  },
  "settings": {
    "currentCount": "当前索引数量",
    "currentWorkers": "当前工作线程",
    "currentBatchSize": "当前批次大小",
    "configTitle": "基本配置",
    "indexDir": {
      "label": "索引目录",
      "placeholder": "~/.codexlens/indexes",
      "hint": "存储代码索引的目录路径"
    },
    "maxWorkers": {
      "label": "最大工作线程",
      "hint": "API 并发处理线程数 (1-32)"
    },
    "batchSize": {
      "label": "批次大小",
      "hint": "每次批量处理的文件数量 (1-64)"
    },
    "validation": {
      "indexDirRequired": "索引目录不能为空",
      "maxWorkersRange": "工作线程数必须在 1-32 之间",
      "batchSizeRange": "批次大小必须在 1-64 之间"
    },
    "save": "保存",
    "saving": "保存中...",
    "reset": "重置",
    "saveSuccess": "配置已保存",
    "saveFailed": "保存失败",
    "configUpdated": "配置更新成功",
    "saveError": "保存配置时出错",
    "unknownError": "发生未知错误"
  },
  "gpu": {
    "title": "GPU 设置",
    "status": "GPU 状态",
    "enabled": "已启用",
    "available": "可用",
    "unavailable": "不可用",
    "supported": "您的系统支持 GPU 加速",
    "notSupported": "您的系统不支持 GPU 加速",
    "detect": "检测",
    "detectSuccess": "GPU 检测完成",
    "detectFailed": "GPU 检测失败",
    "detectComplete": "检测到 {count} 个 GPU 设备",
    "detectError": "检测 GPU 时出错",
    "select": "选择",
    "selected": "已选择",
    "active": "当前",
    "selectSuccess": "GPU 已选择",
    "selectFailed": "GPU 选择失败",
    "gpuSelected": "GPU 设备已启用",
    "selectError": "选择 GPU 时出错",
    "reset": "重置",
    "resetSuccess": "GPU 已重置",
    "resetFailed": "GPU 重置失败",
    "gpuReset": "GPU 已禁用，将使用 CPU",
    "resetError": "重置 GPU 时出错",
    "unknownError": "发生未知错误",
    "noDevices": "未检测到 GPU 设备",
    "notAvailable": "GPU 功能不可用",
    "unknownDevice": "未知设备",
    "type": "类型",
    "discrete": "独立显卡",
    "integrated": "集成显卡",
    "driver": "驱动版本",
    "memory": "显存"
  },
  "advanced": {
    "warningTitle": "敏感操作警告",
    "warningMessage": "修改环境变量可能影响 CodexLens 的正常运行。请确保您了解每个变量的作用。",
    "loadError": "加载环境变量失败",
    "loadErrorDesc": "无法获取环境配置。请检查 CodexLens 是否正确安装。",
    "currentVars": "当前环境变量",
    "settingsVars": "设置变量",
    "customVars": "自定义变量",
    "envEditor": "环境变量编辑器",
    "envFile": "文件",
    "envContent": "环境变量内容",
    "envPlaceholder": "# 注释行以 # 开头\nKEY=value\nANOTHER_KEY=\"another value\"",
    "envHint": "每行一个变量，格式：KEY=value。注释行以 # 开头",
    "save": "保存",
    "saving": "保存中...",
    "reset": "重置",
    "saveSuccess": "环境变量已保存",
    "saveFailed": "保存失败",
    "envUpdated": "环境变量更新成功，重启服务后生效",
    "saveError": "保存环境变量时出错",
    "unknownError": "发生未知错误",
    "validation": {
      "invalidKeys": "无效的变量名: {keys}"
    },
    "helpTitle": "格式说明",
    "helpComment": "注释行以 # 开头",
    "helpFormat": "变量格式：KEY=value",
    "helpQuotes": "包含空格的值建议使用引号",
    "helpRestart": "修改后需要重启服务才能生效"
  },
  "downloadedModels": "已下载模型",
  "noConfiguredModels": "无已配置模型",
  "noLocalModels": "无已下载模型",
  "models": {
    "title": "模型管理",
    "searchPlaceholder": "搜索模型...",
    "downloading": "下载中...",
    "status": {
      "downloaded": "已下载",
      "available": "可用"
    },
    "types": {
      "embedding": "嵌入模型",
      "reranker": "重排序模型"
    },
    "filters": {
      "label": "筛选",
      "all": "全部"
    },
    "actions": {
      "download": "下载",
      "delete": "删除",
      "cancel": "取消"
    },
    "custom": {
      "title": "自定义模型",
      "placeholder": "HuggingFace 模型名称 (如: BAAI/bge-small-zh-v1.5)",
      "description": "从 HuggingFace 下载自定义模型。请确保模型名称正确。"
    },
    "deleteConfirm": "确定要删除模型 {modelName} 吗？",
    "notInstalled": {
      "title": "CodexLens 未安装",
      "description": "请先安装 CodexLens 以使用模型管理功能。"
    },
    "error": {
      "title": "加载模型失败",
      "description": "无法获取模型列表。请检查 CodexLens 是否正确安装。"
    },
    "empty": {
      "title": "没有找到模型",
      "description": "当前没有可用模型。请从列表中下载模型。",
      "filtered": "没有匹配的模型",
      "filteredDesc": "尝试调整搜索或筛选条件"
    }
  },
  "search": {
    "type": "搜索类型",
    "content": "内容搜索",
    "files": "文件搜索",
    "symbol": "符号搜索",
    "semantic": "语义搜索 (LSP)",
    "mode": "模式",
    "mode.semantic": "语义（默认）",
    "mode.exact": "精确（FTS）",
    "mode.fuzzy": "模糊",
    "semanticMode": "搜索模式",
    "semanticMode.fusion": "融合搜索",
    "semanticMode.vector": "向量搜索",
    "semanticMode.structural": "结构搜索",
    "fusionStrategy": "融合策略",
    "fusionStrategy.rrf": "RRF（默认）",
    "fusionStrategy.dense_rerank": "Dense Rerank",
    "fusionStrategy.binary": "Binary",
    "fusionStrategy.hybrid": "Hybrid",
    "fusionStrategy.staged": "Staged",
    "stagedStage2Mode": "Stage 2 扩展",
    "stagedStage2Mode.precomputed": "预计算 (graph_neighbors)",
    "stagedStage2Mode.realtime": "实时 (LSP)",
    "stagedStage2Mode.static_global_graph": "静态全局图",
    "lspStatus": "LSP 状态",
    "lspAvailable": "语义搜索可用",
    "lspUnavailable": "语义搜索不可用",
    "lspNoVector": "需要先建立向量索引",
    "lspNoSemantic": "需要先安装语义依赖",
    "query": "查询",
    "queryPlaceholder": "输入搜索查询...",
    "button": "搜索",
    "searching": "搜索中...",
    "results": "结果",
    "resultsCount": "个结果",
    "notInstalled": {
      "title": "CodexLens 未安装",
      "description": "请先安装 CodexLens 以使用语义代码搜索功能。"
    }
  },
  "reranker": {
    "title": "重排序配置",
    "description": "配置重排序后端、模型和提供商，用于搜索结果排序。",
    "backend": "后端",
    "backendHint": "重排序推理后端",
    "model": "模型",
    "modelHint": "重排序模型名称或 LiteLLM 端点",
    "provider": "API 提供商",
    "providerHint": "重排序服务的 API 提供商",
    "apiKeyStatus": "API 密钥",
    "apiKeySet": "已配置",
    "apiKeyNotSet": "未配置",
    "configSource": "配置来源",
    "save": "保存重排序配置",
    "saving": "保存中...",
    "saveSuccess": "重排序配置已保存",
    "saveFailed": "保存重排序配置失败",
    "noBackends": "无可用后端",
    "noModels": "无可用模型",
    "noProviders": "无可用提供商",
    "litellmModels": "LiteLLM 模型",
    "selectBackend": "选择后端...",
    "selectModel": "选择模型...",
    "selectProvider": "选择提供商..."
  },
  "envGroup": {
    "embedding": "嵌入模型",
    "reranker": "重排序",
    "concurrency": "并发",
    "cascade": "级联搜索",
    "indexing": "索引与解析",
    "chunking": "分块"
  },
  "envField": {
    "backend": "后端",
    "model": "模型",
    "autoEmbedMissing": "缺失向量时自动构建",
    "useGpu": "使用 GPU",
    "highAvailability": "高可用",
    "loadBalanceStrategy": "负载均衡策略",
    "rateLimitCooldown": "限流冷却时间",
    "enabled": "启用",
    "topKResults": "Top K 结果数",
    "maxWorkers": "最大工作线程",
    "batchSize": "批次大小",
    "dynamicBatchSize": "动态批次大小",
    "batchSizeUtilization": "利用率因子",
    "batchSizeMax": "最大批次大小",
    "charsPerToken": "每 Token 字符数",
    "searchStrategy": "搜索策略",
    "coarseK": "粗筛 K 值",
    "fineK": "精筛 K 值",
    "stagedStage2Mode": "Stage-2 模式",
    "stagedClusteringStrategy": "聚类策略",
    "stagedClusteringMinSize": "最小聚类大小",
    "enableStagedRerank": "启用重排序",
    "useAstGrep": "使用 ast-grep",
    "staticGraphEnabled": "启用静态图",
    "staticGraphRelationshipTypes": "关系类型",
    "stripComments": "去除注释",
    "stripDocstrings": "去除文档字符串",
    "testFilePenalty": "测试文件惩罚",
    "docstringWeight": "文档字符串权重"
  },
  "install": {
    "title": "安装 CodexLens",
    "description": "设置 Python 虚拟环境并安装 CodexLens 包。",
    "checklist": "将要安装的内容",
    "pythonVenv": "Python 虚拟环境",
    "pythonVenvDesc": "CodexLens 的隔离 Python 环境",
    "codexlensPackage": "CodexLens 包",
    "codexlensPackageDesc": "核心语义代码搜索引擎",
    "sqliteFts": "SQLite FTS5",
    "sqliteFtsDesc": "用于快速代码查找的全文搜索扩展",
    "location": "安装位置",
    "locationPath": "~/.codexlens/venv",
    "timeEstimate": "安装可能需要 1-3 分钟，取决于网络速度。",
    "stage": {
      "creatingVenv": "正在创建 Python 虚拟环境...",
      "installingPip": "正在安装 pip 依赖...",
      "installingPackage": "正在安装 CodexLens 包...",
      "settingUpDeps": "正在设置依赖项...",
      "finalizing": "正在完成安装...",
      "complete": "安装完成！"
    },
    "installNow": "立即安装",
    "installing": "安装中..."
  },
  "mcp": {
    "title": "CCW 工具注册表",
    "loading": "加载工具中...",
    "error": "加载工具失败",
    "errorDesc": "无法获取 CCW 工具列表。请检查服务器是否正在运行。",
    "emptyDesc": "当前没有已注册的工具。",
    "totalCount": "{count} 个工具",
    "codexLensSection": "CodexLens 工具",
    "otherSection": "其他工具"
  },
  "watcher": {
    "title": "文件监听器",
    "status": {
      "running": "运行中",
      "stopped": "已停止"
    },
    "eventsProcessed": "已处理事件",
    "uptime": "运行时间",
    "start": "启动监听",
    "starting": "启动中...",
    "stop": "停止监听",
    "stopping": "停止中...",
    "started": "文件监听器已启动",
    "stopped": "文件监听器已停止"
  },
  "lsp": {
    "title": "LSP 服务器",
    "status": {
      "running": "运行中",
      "stopped": "已停止"
    },
    "projects": "项目数",
    "embeddings": "嵌入模型",
    "modes": "模式",
    "semanticAvailable": "语义搜索",
    "available": "可用",
    "unavailable": "不可用",
    "start": "启动服务",
    "starting": "启动中...",
    "stop": "停止服务",
    "stopping": "停止中...",
    "restart": "重启",
    "restarting": "重启中...",
    "started": "LSP 服务器已启动",
    "stopped": "LSP 服务器已停止",
    "restarted": "LSP 服务器已重启"
  }
}
