export const zh = {
  common: {
    loading: "加载项目...",
    noGraphLoaded: "未加载知识图谱",
    selectNode: "选择节点查看详情",
    back: "返回",
    focus: "聚焦",
    unfocus: "取消聚焦",
    openCode: "打开代码",
    file: "文件",
    tags: "标签",
    connections: "连接",
    filter: "筛选",
    resetAll: "重置全部",
    analyzed: "分析时间",
    startGuidedTour: "开始导览",
    truncated: "(已截断)",
    preview: "预览",
    doubleClickToOpen: "双击打开",
    appName: "Understand Anything",
    pressKeyboard: "按 ? 查看键盘快捷键",
    path: "路径",
    theme: "主题",
  },
  projectOverview: {
    nodes: "节点",
    edges: "边",
    layers: "层级",
    types: "类型",
    fileTypes: "文件类型",
    code: "代码",
    config: "配置",
    docs: "文档",
    infra: "基础设施",
    data: "数据",
    domain: "领域",
    knowledge: "知识",
    languages: "编程语言",
    frameworks: "框架",
    nodeTypeDistribution: "节点类型分布",
    complexityDistribution: "复杂度分布",
    simple: "简单",
    moderate: "中等",
    complex: "复杂",
    mostConnectedNodes: "连接最多的节点",
    avgConnectionsPerNode: "节点平均连接数",
  },
  nodeInfo: {
    definedInThisFile: "在此文件中定义",
    languageConcepts: "语言概念",
    category: "分类",
    wikilinks: "维基链接",
    backlinks: "反向链接",
    entities: "实体",
    businessRules: "业务规则",
    crossDomain: "跨领域",
    flows: "流程",
    entryPoint: "入口点",
    steps: "步骤",
    implementation: "实现",
  },
  fileExplorer: {
    analyzedFiles: "已分析文件",
    filesFromGraph: "来自当前知识图谱的文件",
    noFilePathsFound: "未找到文件路径。",
  },
  filterPanel: {
    nodeTypes: "节点类型",
    complexity: "复杂度",
    layers: "层级",
    edgeCategories: "边类别",
  },
  personaSelector: {
    overview: "概览",
    overviewDesc: "高层次架构视图",
    learn: "学习",
    learnDesc: "完整仪表盘与导览学习",
    deepDive: "深入",
    deepDiveDesc: "代码聚焦与对话",
  },
  sidebar: {
    info: "信息",
    files: "文件",
  },
  mobile: {
    graph: "图谱",
    info: "信息",
    files: "文件",
  },
  drawer: {
    controls: "控制",
    dashboard: "仪表盘",
    role: "角色",
    view: "视图",
    diffOverlay: "差异覆盖",
    nodeTypes: "节点类型",
    layers: "层级",
    tools: "工具",
    path: "路径",
    help: "帮助",
    structural: "结构",
    domain: "领域",
  },
  domainView: {
    backToDomains: "返回领域列表",
  },
  detailLevel: {
    filesTitle: "仅文件 — 架构级依赖（快速）",
    classesTitle: "文件 + 类 — 代码结构及继承关系",
    files: "文件",
    classes: "+类",
    fnTitle: "切换函数节点（可能降低渲染速度）",
    fn: "函数",
  },
  nodeTypeLabels: {
    all: "全部",
    code: "代码",
    config: "配置",
    docs: "文档",
    infra: "基础设施",
    data: "数据",
    domain: "领域",
    knowledge: "知识",
  },
  tokenGate: {
    validating: "验证中...",
    continue: "继续",
  },
  diffToggle: {
    hideOverlay: "隐藏差异覆盖",
    showOverlay: "显示差异覆盖",
    noData: "未加载差异数据",
    changed: "已修改",
    affected: "受影响",
  },
  learnPanel: {
    finish: "完成",
    next: "下一步",
    prev: "上一步",
    noTour: "无导览可用",
    noTourHint: "从知识图谱生成导览以获取代码库的引导式讲解",
    projectTour: "项目导览",
    steps: "步",
    stepsTitle: "步骤",
    guidedWalkthrough: "代码库引导式讲解",
    startTour: "开始导览",
    tour: "导览",
    exitTour: "退出导览",
  },
  layer: {
    defaultName: "层级",
    label: "层",
  },
  breadcrumb: {
    projectOverview: "项目概览",
    project: "项目",
    escBack: "按 Esc 返回",
  },
  warningBanner: {
    dropped: "已丢弃",
    fatal: "致命错误",
  },
  themePicker: {
    changeTheme: "更换主题",
    theme: "主题",
    accentColor: "强调色",
    headingFont: "标题字体",
    serif: "衬线",
    sans: "无衬线",
    mono: "等宽",
  },
  codeViewer: {
    fullFile: "完整文件",
    lines: "行",
    linesLabel: "行",
    noFile: "未选择文件",
    loading: "加载源码中...",
    openLarger: "打开更大的代码查看器",
    closeExpanded: "关闭展开的代码查看器",
    closeViewer: "关闭代码查看器",
    sourceUnavailable: "源码不可用",
  },
  customNode: {
    tested: "已测试",
    hasTests: "有测试",
  },
  ariaLabels: {
    openMenu: "打开菜单",
    closeMenu: "关闭菜单",
    settings: "设置",
    hideSearch: "隐藏搜索",
    showSearch: "显示搜索",
  },
  nodeTypeFilter: {
    hide: "隐藏",
    show: "显示",
    nodesLabel: "节点",
  },
  keyboardShortcuts: {
    showHelp: "显示键盘快捷键",
    general: "通用",
    navigation: "导航",
    tour: "导览",
    view: "视图",
    focusSearch: "聚焦搜索栏",
    nextStep: "下一步导览",
    prevStep: "上一步导览",
    toggleDiff: "切换差异模式",
    toggleFilter: "切换筛选面板",
    toggleExport: "切换导出菜单",
    openPathFinder: "打开路径查找器",
    title: "键盘快捷键",
    toggleHint: "按 ? 随时切换此帮助",
    closeHint: "按 ESC 关闭",
    escapeDesc: "关闭面板和弹窗 / 返回概览",
  },
  search: {
    placeholder: "搜索节点名称、摘要或标签...",
    fuzzy: "模糊",
    semantic: "语义",
    result: "结果",
  },
  export: {
    label: "导出",
    title: "导出图谱 (E)",
    asPNG: "导出为 PNG",
    asSVG: "导出为 SVG",
    asJSON: "导出为 JSON",
  },
  edgeLabels: {
    imports: { forward: "导入", backward: "被导入" },
    exports: { forward: "导出到", backward: "被导出" },
    contains: { forward: "包含", backward: "被包含" },
    inherits: { forward: "继承自", backward: "被继承" },
    implements: { forward: "实现", backward: "被实现" },
    calls: { forward: "调用", backward: "被调用" },
    subscribes: { forward: "订阅", backward: "被订阅" },
    publishes: { forward: "发布到", backward: "被消费" },
    middleware: { forward: "中间件", backward: "使用中间件" },
    reads_from: { forward: "读取", backward: "被读取" },
    writes_to: { forward: "写入", backward: "被写入" },
    transforms: { forward: "转换", backward: "被转换" },
    validates: { forward: "验证", backward: "被验证" },
    depends_on: { forward: "依赖", backward: "被依赖" },
    tested_by: { forward: "被测试", backward: "测试" },
    configures: { forward: "配置", backward: "被配置" },
    related: { forward: "相关", backward: "相关" },
    similar_to: { forward: "相似", backward: "相似" },
    deploys: { forward: "部署", backward: "被部署" },
    serves: { forward: "服务", backward: "被服务" },
    migrates: { forward: "迁移", backward: "被迁移" },
    documents: { forward: "文档化", backward: "被文档化" },
    provisions: { forward: "提供", backward: "被提供" },
    routes: { forward: "路由到", backward: "被路由" },
    defines_schema: { forward: "定义架构", backward: "架构被定义" },
    triggers: { forward: "触发", backward: "被触发" },
    contains_flow: { forward: "包含流程", backward: "流程所在" },
    flow_step: { forward: "流程步骤", backward: "步骤所属" },
    cross_domain: { forward: "跨领域到", backward: "跨领域来自" },
    cites: { forward: "引用", backward: "被引用" },
    contradicts: { forward: "反驳", backward: "被反驳" },
    builds_on: { forward: "基于", backward: "作为基础" },
    exemplifies: { forward: "例证", backward: "被例证" },
    categorized_under: { forward: "归类于", backward: "归类" },
    authored_by: { forward: "作者", backward: "著作" },
  },
  pathFinder: {
    title: "查找节点间路径 (P)",
  },
  onboarding: {
    header: "UNDERSTAND-ANYTHING · 入门",
    skipForever: "不再显示",
    prev: "上一步",
    next: "下一步",
    finish: "开始探索",
    steps: [
      {
        title: "欢迎进入知识图",
        body: "你看到的圆点和连线是 Understand-Anything 把这份项目抽出来的实体和关系。节点可以是代码里的文件、类、函数，也可以是知识 wiki 里的概念、实体或断言。",
        hint: "5 步以内带你过完核心操作",
      },
      {
        title: "顶部三个视图",
        body: "Overview 看全貌（力导向图）· Learn 跟随预设学习路径 · Deep Dive 看类型 / 复杂度统计。每个视图回答一种不同的问法。",
        hint: "切视图前先想清楚自己在问什么",
      },
      {
        title: "搜索 + 点节点",
        body: "顶部搜索框模糊匹配节点名 / summary / tags。点任意节点 → 右侧详情面板出现 summary + 邻居列表 + Open Article 按钮。",
        hint: "搜索高亮居中，点节点高亮邻居边",
      },
      {
        title: "Layer 切换 + Tour",
        body: "顶部 All 旁边的 layer 标签按 index.md 分类只显示部分节点。右侧 Project Tour 自动按编辑者预设顺序导览。",
        hint: "节点太密看不清就用 Layer，没头绪就启 Tour",
      },
      {
        title: "更多隐藏功能",
        body: "顶栏还有 Filter（按类型 / 复杂度过滤）、Export（导出图）、Path（找两个节点之间的路径）、Theme（切换主题）。Shift + ? 看完整快捷键。",
        hint: "需要时再展开，不要一次记完",
      },
    ],
  },
};

export default zh;