export type Locale = "zh" | "en";
export type DocPageKey = "documentation" | "guides" | "configuration" | "troubleshooting";

const languageOptions = [
  { locale: "zh", label: "中文", href: "/" },
  { locale: "en", label: "English", href: "/en/" },
] as const;

export const docsContent = {
  zh: {
    htmlLang: "zh-CN",
    pageTitle: "文档",
    languageLabel: "中文",
    languageOptions,
    navItems: [
      { label: "文档", href: "/", pageKey: "documentation" },
      { label: "快速开始", href: "/guides/", pageKey: "guides" },
      { label: "详细配置", href: "/configuration/overview/", pageKey: "configuration" },
      { label: "Q&A", href: "/troubleshooting/", pageKey: "troubleshooting" },
    ],
    pages: {
      documentation: {
        sidebarGroups: [
          {
            label: "文档",
            icon: "rocket",
            items: ["CCR 能帮你做什么", "文档结构", "阅读路径"],
            active: "CCR 能帮你做什么",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {},
        sidebarTargets: {},
      },
      guides: {
        sidebarGroups: [
          {
            label: "快速开始",
            icon: "book",
            items: [
              "安装并启动 CCR",
              "CLI 安装与命令参考",
              "Docker 部署",
              "接入供应商",
              "接入 Agent配置",
              "日志&观测",
            ],
            active: "安装并启动 CCR",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {
          "安装并启动 CCR": "/guides/install/",
          "CLI 安装与命令参考": "/guides/cli/",
          "Docker 部署": "/guides/docker/",
          接入供应商: "/guides/provider/",
          "接入 Agent配置": "/guides/agent-profile/",
          "日志&观测": "/guides/observability/",
        },
        sidebarTargets: {},
      },
      configuration: {
        sidebarGroups: [
          {
            label: "主页页面",
            icon: "wand",
            items: [
              "概览仪表盘",
              "供应商配置",
              "一键导入供应商",
              "Agent配置",
              "路由配置",
              "Fusion 组合模型",
              "API 密钥",
              "日志&观测",
              "服务配置",
              "扩展机制",
            ],
            active: "概览仪表盘",
          },
          {
            label: "设置页",
            icon: "book",
            items: [
              "ToolHub",
              "Bot 与 IM 接力 Agent",
              "配置数据库位置",
              "托盘配置",
            ],
            active: "",
          },
        ],
        expandableSidebarItems: ["Fusion 组合模型", "Bot 与 IM 接力 Agent"],
        sidebarChildren: {
          "Fusion 组合模型": ["内置图像能力", "内置联网搜索", "自定义 MCP 工具"],
          "Bot 与 IM 接力 Agent": [
            "配置步骤",
            "Slack",
            "Discord",
            "Telegram",
            "LINE",
            "微信",
            "企业微信",
            "飞书",
            "钉钉",
          ],
        },
        sidebarLinks: {
          概览仪表盘: "/configuration/overview/",
          供应商配置: "/configuration/provider/",
          "一键导入供应商": "/configuration/provider-deeplink/",
          路由配置: "/configuration/routing/",
          "日志&观测": "/configuration/observability/",
          "Fusion 组合模型": "/configuration/fusion/",
          内置图像能力: "/configuration/fusion-vision/",
          内置联网搜索: "/configuration/fusion-web-search/",
          "自定义 MCP 工具": "/configuration/fusion-mcp-tool/",
          ToolHub: "/configuration/toolhub/",
          Agent配置: "/configuration/profile/",
          "API 密钥": "/configuration/api-keys/",
          服务配置: "/configuration/server/",
          托盘配置: "/configuration/tray/",
          扩展机制: "/configuration/extensions/",
          "Bot 与 IM 接力 Agent": "/configuration/bot-relay/",
          配置步骤: "/configuration/bot-setup/",
          Slack: "/bot-与-im-接力-agent/slack/",
          Discord: "/bot-与-im-接力-agent/discord/",
          Telegram: "/bot-与-im-接力-agent/telegram/",
          LINE: "/bot-与-im-接力-agent/line/",
          微信: "/bot-与-im-接力-agent/weixin-ilink/",
          企业微信: "/bot-与-im-接力-agent/wecom/",
          飞书: "/bot-与-im-接力-agent/feishu/",
          钉钉: "/bot-与-im-接力-agent/dingtalk/",
          配置数据库位置: "/configuration/config-file/",
        },
        sidebarTargets: {},
      },
      troubleshooting: {
        sidebarGroups: [
          {
            label: "Q&A",
            icon: "pen",
            items: [],
            active: "",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {},
        sidebarTargets: {},
      },
    },
    tocTitle: "本页内容",
    ui: {
      searchLabel: "搜索文档",
      searchPlaceholder: "搜索...",
      copyPage: "复制页面",
      copied: "已复制",
      copyFailed: "复制失败",
      downloadLabel: "下载",
      githubLabel: "GitHub 仓库",
      themeLabel: "主题",
      starsFallback: "Stars",
      copyCode: "复制代码",
      copiedCode: "代码已复制",
      copyCodeFailed: "代码复制失败",
    },
  },
  en: {
    htmlLang: "en",
    pageTitle: "Documentation",
    languageLabel: "English",
    languageOptions,
    navItems: [
      { label: "Documentation", href: "/en/", pageKey: "documentation" },
      { label: "Quick Start", href: "/en/guides/", pageKey: "guides" },
      { label: "Detailed Configuration", href: "/en/configuration/overview/", pageKey: "configuration" },
      { label: "Q&A", href: "/en/troubleshooting/", pageKey: "troubleshooting" },
    ],
    pages: {
      documentation: {
        sidebarGroups: [
          {
            label: "Documentation",
            icon: "rocket",
            items: ["What CCR Can Do", "Documentation Structure", "Reading Path"],
            active: "What CCR Can Do",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {},
        sidebarTargets: {},
      },
      guides: {
        sidebarGroups: [
          {
            label: "Quick Start",
            icon: "book",
            items: [
              "Install And Start CCR",
              "CLI Installation And Reference",
              "Docker Deployment",
              "Add A Provider",
              "Connect Agent Config",
              "Logs & Observability",
            ],
            active: "Install And Start CCR",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {
          "Install And Start CCR": "/en/guides/install/",
          "CLI Installation And Reference": "/en/guides/cli/",
          "Docker Deployment": "/en/guides/docker/",
          "Add A Provider": "/en/guides/provider/",
          "Connect Agent Config": "/en/guides/agent-profile/",
          "Logs & Observability": "/en/guides/observability/",
        },
        sidebarTargets: {},
      },
      configuration: {
        sidebarGroups: [
          {
            label: "Main Pages",
            icon: "wand",
            items: [
              "Overview Dashboard",
              "Provider Config",
              "One click import",
              "Agent Config",
              "Routing Config",
              "Fusion Models",
              "API Keys",
              "Logs & Observability",
              "Server",
              "Extension Mechanism",
            ],
            active: "Overview Dashboard",
          },
          {
            label: "Settings Pages",
            icon: "book",
            items: [
              "ToolHub",
              "Bots And IM Agent Relay",
              "Config Database Location",
              "Tray Configuration",
            ],
            active: "",
          },
        ],
        expandableSidebarItems: ["Fusion Models", "Bots And IM Agent Relay"],
        sidebarChildren: {
          "Fusion Models": ["Built-In Vision", "Built-In Web Search", "Custom MCP Tool"],
          "Bots And IM Agent Relay": ["Setup", "Slack", "Discord", "Telegram", "LINE", "Weixin", "WeCom", "Feishu", "DingTalk"],
        },
        sidebarLinks: {
          "Overview Dashboard": "/en/configuration/overview/",
          "Provider Config": "/en/configuration/providers/",
          "One click import": "/en/configuration/provider-deeplink/",
          "Routing Config": "/en/configuration/routing/",
          "Logs & Observability": "/en/configuration/observability/",
          "Fusion Models": "/en/configuration/fusion-models/",
          "Built-In Vision": "/en/configuration/fusion-vision/",
          "Built-In Web Search": "/en/configuration/fusion-web-search/",
          "Custom MCP Tool": "/en/configuration/fusion-mcp-tool/",
          ToolHub: "/en/configuration/toolhub/",
          "Agent Config": "/en/configuration/profiles/",
          "API Keys": "/en/configuration/api-keys/",
          Server: "/en/configuration/server/",
          "Tray Configuration": "/en/configuration/tray/",
          "Extension Mechanism": "/en/configuration/extensions/",
          "Bots And IM Agent Relay": "/en/configuration/bots/",
          Setup: "/en/configuration/bot-setup/",
          Slack: "/en/relay-agents-in-im-with-bots/slack/",
          Discord: "/en/relay-agents-in-im-with-bots/discord/",
          Telegram: "/en/relay-agents-in-im-with-bots/telegram/",
          LINE: "/en/relay-agents-in-im-with-bots/line/",
          Weixin: "/en/relay-agents-in-im-with-bots/weixin-ilink/",
          WeCom: "/en/relay-agents-in-im-with-bots/wecom/",
          Feishu: "/en/relay-agents-in-im-with-bots/feishu/",
          DingTalk: "/en/relay-agents-in-im-with-bots/dingtalk/",
          "Config Database Location": "/en/configuration/configuration-file/",
        },
        sidebarTargets: {},
      },
      troubleshooting: {
        sidebarGroups: [
          {
            label: "Q&A",
            icon: "pen",
            items: [],
            active: "",
          },
        ],
        expandableSidebarItems: [],
        sidebarChildren: {},
        sidebarLinks: {},
        sidebarTargets: {},
      },
    },
    tocTitle: "On this page",
    ui: {
      searchLabel: "Search docs",
      searchPlaceholder: "Search...",
      copyPage: "Copy page",
      copied: "Copied",
      copyFailed: "Copy failed",
      downloadLabel: "Download",
      githubLabel: "GitHub repository",
      themeLabel: "Theme",
      starsFallback: "Stars",
      copyCode: "Copy code",
      copiedCode: "Copied code",
      copyCodeFailed: "Copy failed",
    },
  },
} as const;
