// sidebar + search + shortcutPanel

export const navigationEn = {
  sidebar: {
    files: 'Mind',
    search: 'Search',
    searchTitle: 'Search',
    askTitle: 'MindOS',
    settingsTitle: 'Settings',
    plugins: 'Plugins',
    agents: 'Agents',
    echo: 'Echo',
    discover: 'Discover',
    workflows: 'Flows',
    history: 'History',
    help: 'Help',
    syncLabel: 'Sync',
    collapseTitle: 'Collapse sidebar',
    expandTitle: 'Expand sidebar',
    collapseLevel: 'Collapse one level',
    collapseLevelHint: 'Collapse one level (double-click: all)',
    expandLevel: 'Expand one level',
    expandLevelHint: 'Expand one level (double-click: all)',
    importFile: 'Import file',
    refreshFiles: 'Refresh knowledge base',
    new: 'New',
    newFile: 'New file',
    newSpace: 'New Space',
    more: 'More',
    capture: 'Inbox',
    showHiddenFiles: 'Show hidden files',
    builtInSpacesTitle: 'Mind System',
    builtInSpacesDesc: 'Built-in modules mapped to local folders.',
    builtInSpacesRoot: 'Dao / Fa / Shu / Qi',
    sync: {
      synced: 'Synced',
      syncReady: 'Sync ready',
      syncReadyHint: 'No completed sync has been recorded yet. Run Sync Now to create the first backup.',
      unpushed: 'awaiting push',
      unpushedHint: 'commit(s) not yet pushed to remote — will sync automatically',
      changesToUpload: '{n} changes to upload',
      changesToUploadHint: 'Local changes are not backed up yet. Run Sync now or let auto-sync upload them.',
      conflicts: 'conflicts',
      conflictsHint: 'file(s) have merge conflicts — open Settings > Sync to resolve',
      resolveConflicts: 'Resolve {n} conflicts',
      resolveConflictsHint: 'Files changed in two places. Open Settings > Sync to choose which version to keep.',
      syncError: 'Sync error',
      syncUnavailable: 'Sync status unavailable',
      syncLocked: 'Sync is already running',
      hintSyncLocked: 'Another sync operation is already running. Wait a moment, then try again.',
      hintSshAuth: 'SSH key may not be configured. Check the SSH key for this Git host.',
      hintSshHost: 'Add this Git host to ~/.ssh/known_hosts with ssh-keyscan.',
      hintHttpsAuth: 'Access token or Git credentials may be expired or missing. Check this Git host\'s credential settings.',
      hintNetwork: 'Check your network connection and try again.',
      hintNotFound: 'Repository not found. Check the URL and ensure the repo exists.',
      hintPushRejected: 'Remote has changes. Run Sync now to pull and retry.',
      hintConflict: 'Merge conflict detected. Open Settings > Sync.',
      syncOff: 'Sync off',
      syncPaused: 'Sync paused',
      syncPausedHint: 'Auto-sync is disabled for this repository. Open Settings > Sync to enable it.',
      syncUnknown: 'Sync status unknown',
      syncUnknownHint: 'MindOS could not confirm whether local changes have been uploaded. Open Settings > Sync for details.',
      syncStale: 'Sync status stale',
      syncStaleHint: 'MindOS could not refresh sync status. The displayed state may be outdated.',
      syncing: 'Syncing...',
      syncNow: 'Sync now',
      retry: 'Retry',
      dismiss: 'Dismiss',
      syncDone: 'Sync complete',
      syncFailed: 'Sync failed',
      syncRestored: 'Sync restored',
      enableSync: 'Enable sync',
      enableHint: 'Set up cross-device sync',
      timeNever: 'never',
      timeUnknown: 'unknown',
      timeJustNow: 'just now',
      timeMinAgo: (m: number) => `${m}m ago`,
      timeHourAgo: (h: number) => `${h}h ago`,
      timeDayAgo: (d: number) => `${d}d ago`,
    },
  },
  search: {
    placeholder: 'Search files...',
    emptyTitle: 'Find your notes fast',
    emptyHint: 'Type a file name or keyword to begin',
    noResults: 'No matching files',
    noResultsHint: 'Try different keywords',
    preparing: 'Preparing search...',
    fallbackWarmHint: 'Search will prepare on first query.',
    prompt: 'Type to search across all files',
    navigate: 'navigate',
    open: 'open',
    close: 'close',
    clear: 'Clear search',
    dragToChat: 'to chat',
    tabSearch: 'Search',
    tabActions: 'Actions',
    openSettings: 'Open Settings',
    restartWalkthrough: 'Restart Walkthrough',
    toggleDarkMode: 'Toggle Dark Mode',
    goToAgents: 'Go to Agents',
    goToDiscover: 'Go to Discover',
    goToHelp: 'Go to Help',
    walkthroughRestarted: 'Walkthrough restarted',
  },
  shortcutPanel: {
    title: 'Keyboard Shortcuts',
    navigation: 'Navigation',
    panelsSection: 'Panels',
    editor: 'Editor',
    toggleSearch: 'Toggle Search',
    toggleAskAI: 'Toggle MindOS',
    openSettings: 'Open Settings',
    keyboardShortcuts: 'Keyboard Shortcuts',
    closePanel: 'Close panel / Exit maximize',
    saveFile: 'Save file',
    undo: 'Undo',
    redo: 'Redo',
    toggleHint: 'to toggle this panel',
  },
} as const;

export const navigationZh = {
  sidebar: {
    files: 'Mind',
    search: '搜索',
    searchTitle: '搜索',
    askTitle: 'MindOS',
    settingsTitle: '设置',
    plugins: '插件',
    agents: '智能体',
    echo: '回响',
    discover: '探索',
    workflows: '流程',
    history: '历史',
    help: '帮助',
    syncLabel: '同步',
    collapseTitle: '收起侧栏',
    expandTitle: '展开侧栏',
    collapseLevel: '折叠一级',
    collapseLevelHint: '折叠一级（双击：全部折叠）',
    expandLevel: '展开一级',
    expandLevelHint: '展开一级（双击：全部展开）',
    importFile: '导入文件',
    refreshFiles: '刷新知识库',
    new: '新建',
    newFile: '新建文件',
    newSpace: '新建空间',
    more: '更多',
    capture: '收集箱',
    showHiddenFiles: '显示隐藏文件',
    builtInSpacesTitle: 'Mind 系统',
    builtInSpacesDesc: '内置模块映射到本地目录。',
    builtInSpacesRoot: '道 / 法 / 术 / 器',
    sync: {
      synced: '已同步',
      syncReady: '同步已就绪',
      syncReadyHint: '还没有完成过同步。点击立即同步来创建第一次备份。',
      unpushed: '待推送',
      unpushedHint: '个提交尚未推送到远程 — 将自动同步',
      changesToUpload: '{n} 个改动待上传',
      changesToUploadHint: '本地改动尚未备份。可以立即同步，也可以等待自动同步上传。',
      conflicts: '冲突',
      conflictsHint: '个文件存在合并冲突 — 前往 设置 > 同步 解决',
      resolveConflicts: '解决 {n} 个冲突',
      resolveConflictsHint: '文件在两处都被修改。打开 设置 > 同步，选择保留哪个版本。',
      syncError: '同步出错',
      syncUnavailable: '同步状态不可用',
      syncLocked: '同步正在运行',
      hintSyncLocked: '另一个同步操作正在运行。稍等片刻后再试。',
      hintSshAuth: 'SSH 密钥可能未配置。请检查这个 Git host 对应的 SSH key。',
      hintSshHost: '请用 ssh-keyscan 把这个 Git host 加入 ~/.ssh/known_hosts。',
      hintHttpsAuth: '访问令牌或 Git 凭据可能已过期或未填写。请检查这个 Git host 的凭据设置。',
      hintNetwork: '请检查网络连接后重试。',
      hintNotFound: '未找到仓库。请检查 URL，并确认该仓库存在且你有权限访问。',
      hintPushRejected: '远程已有新改动。请立即同步以先拉取并重试。',
      hintConflict: '检测到合并冲突。请打开 设置 > 同步。',
      syncOff: '同步关闭',
      syncPaused: '同步已暂停',
      syncPausedHint: '这个仓库已禁用自动同步。打开 设置 > 同步 可重新启用。',
      syncUnknown: '同步状态未知',
      syncUnknownHint: 'MindOS 暂时无法确认本地改动是否已上传。打开 设置 > 同步 查看详情。',
      syncStale: '同步状态已过期',
      syncStaleHint: 'MindOS 无法刷新同步状态，当前展示可能不是最新状态。',
      syncing: '同步中...',
      syncNow: '立即同步',
      retry: '重试',
      dismiss: '关闭提示',
      syncDone: '同步完成',
      syncFailed: '同步失败',
      syncRestored: '同步已恢复',
      enableSync: '启用同步',
      enableHint: '设置跨设备同步',
      timeNever: '从未',
      timeUnknown: '未知',
      timeJustNow: '刚刚',
      timeMinAgo: (m: number) => `${m} 分钟前`,
      timeHourAgo: (h: number) => `${h} 小时前`,
      timeDayAgo: (d: number) => `${d} 天前`,
    },
  },
  search: {
    placeholder: '搜索文件...',
    emptyTitle: '快速查找笔记',
    emptyHint: '输入文件名或内容关键词',
    noResults: '未找到匹配的文件',
    noResultsHint: '尝试其他关键词',
    preparing: '正在准备搜索...',
    fallbackWarmHint: '搜索将在首次查询时完成准备。',
    prompt: '输入关键词搜索所有文件',
    navigate: '上下导航',
    open: '打开',
    close: '关闭',
    clear: '清除搜索',
    dragToChat: '拖入对话',
    tabSearch: '搜索',
    tabActions: '快捷操作',
    openSettings: '打开设置',
    restartWalkthrough: '重新开始引导',
    toggleDarkMode: '切换深色模式',
    goToAgents: '前往智能体',
    goToDiscover: '前往探索',
    goToHelp: '前往帮助',
    walkthroughRestarted: '引导已重置',
  },
  shortcutPanel: {
    title: '快捷键',
    navigation: '导航',
    panelsSection: '面板',
    editor: '编辑器',
    toggleSearch: '切换搜索',
    toggleAskAI: '切换 MindOS',
    openSettings: '打开设置',
    keyboardShortcuts: '快捷键',
    closePanel: '关闭面板 / 退出最大化',
    saveFile: '保存文件',
    undo: '撤销',
    redo: '重做',
    toggleHint: '切换此面板',
  },
};
