export const zhTW = {
  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 zhTW;