export const resources = {
  en: {
    translation: {
      common: {
        appName: "Star Manager",
        actions: {
          cancel: "Cancel",
          clear: "Clear",
          close: "Close",
          save: "Save",
          settings: "Settings",
        },
        labels: {
          error: "Error",
          failed: "Failed",
          language: "Language",
          lastSync: "Last sync",
          progress: "Progress",
          search: "Search",
          stage: "Stage",
          status: "Status",
          unknown: "Unknown",
        },
        values: {
          all: "All",
          allStarred: "All Starred",
          none: "(none)",
          unclassified: "Unclassified",
        },
      },
      app: {
        subtitle: "Organize GitHub Star Lists with confidence.",
        actions: {
          assignList: "Assign List",
          connectPat: "Connect PAT",
          manageLists: "Manage lists",
          retryFailedLists: "Retry failed lists ({{count}})",
          syncStarLists: "Sync Star Lists",
        },
        sections: {
          repositories: "Repositories",
          starLists: "Star Lists",
          syncStatus: "Sync Status",
        },
        sync: {
          detail: {
            connectPat: "Connect PAT to start importing your starred repos.",
            preparing: "Preparing sync...",
            progress: "{{stage}} ({{current}}/{{total}})",
            loaded: "Loaded {{repos}} repos across {{lists}} lists.",
            retryRecovered: "All failed lists recovered.",
            retryFinished: "Retry finished. {{count}} lists still failed.",
            tokenOk: "Token OK. Logged in as {{login}}.",
            syncFailed: "Sync failed",
            retryFailed: "Retry failed",
            tokenValidationFailed: "Token validation failed",
          },
          status: {
            completed: "Completed",
            failed: "Failed",
            idle: "Idle",
            ready: "Ready",
            retrying: "Retrying",
            running: "Running",
          },
        },
        filters: {
          noList: "No list",
          searchPlaceholder: "Search name or description",
          updatedLastSixMonths: "Updated last 6 months",
        },
        empty: {
          noListsTitle: "No Star Lists loaded yet.",
          noListsHint: "Run a sync to import your existing lists.",
          noDataTitle: "No data yet.",
          noDataHint: "Connect your PAT and run a sync to load your starred repos.",
          noFilteredTitle: "No repositories match the current filters.",
          noFilteredHint: "Try clearing filters or sync your Star Lists first.",
        },
        values: {
          noDescription: "No description",
        },
        nav: {
          openStarLists: "Categories",
          closeListSidebar: "Close categories",
        },
      },
      onboarding: {
        title: "README Fetching",
        description1:
          "We can fetch README snippets during sync. This may increase GitHub API usage and takes longer.",
        description2:
          "Would you like to enable README fetching now? You can change this later in Settings.",
        skip: "Skip for now",
        enable: "Enable README fetch",
      },
      patModal: {
        title: "Connect GitHub PAT",
        description:
          "We store your token locally to access your Star Lists. Recommended scopes: repo, read:user, read:star.",
        tokenLabel: "Personal access token",
        savePat: "Save PAT",
      },
      settings: {
        closeAria: "Close settings",
        title: "Settings",
        description: "Manage tokens, README fetching, and local cache.",
        sections: {
          language: "Language",
          localCache: "Local Cache",
          patManagement: "PAT Management",
          readmeFetching: "README Fetching",
        },
        language: {
          appLanguage: "App language",
          auto: "Auto (Browser)",
          english: "English",
          chineseSimplified: "Chinese (Simplified)",
          promptLanguage: "Prompt language: {{language}}. Prompts follow the app language.",
          promptLanguageEnglish: "English",
          promptLanguageChinese: "中文",
        },
        pat: {
          githubPat: "GitHub PAT",
          githubLoginOptional: "GitHub Login (optional)",
          savePat: "Save PAT",
          clearPat: "Clear PAT",
          required: "PAT is required.",
          validating: "Validating PAT...",
          validated: "PAT validated. Logged in as {{login}}.",
          validationFailed: "PAT validation failed ({{name}}): {{message}}",
          cleared: "PAT cleared.",
        },
        readme: {
          enable: "Enable README snippets during sync",
        },
        cache: {
          help: "Clear IndexedDB data to reset your local cache.",
          clearButton: "Clear Local Cache",
          cleared: "Local cache cleared. Reloading...",
        },
      },
      listManage: {
        closeAria: "Close list management",
        title: "Manage Star Lists",
        intro:
          "Create, rename, or delete lists on GitHub. Changes apply to your account and update the local cache.",
        createSection: "New list",
        editSection: "Edit list",
        existingSection: "Your lists",
        nameLabel: "Name",
        descriptionLabel: "Description",
        isPrivate: "Private list",
        create: "Create",
        save: "Save",
        cancelEdit: "Cancel edit",
        edit: "Edit",
        delete: "Delete",
        reposColumn: "Repos",
        actionsColumn: "Actions",
        deleteConfirm:
          "Delete list \"{{name}}\" on GitHub? Starred repositories stay starred; only this list is removed.",
        empty: "No lists yet. Create one above, or sync to import existing lists.",
        needPat: "Connect a GitHub PAT first.",
        nameRequired: "Name is required.",
        saveFailed: "Could not save the list.",
        deleteFailed: "Could not delete the list.",
        status: {
          creating: "Creating...",
          saving: "Saving...",
        },
      },
      assignList: {
        closeAria: "Close assign list",
        title: "Assign List",
        description: "Choose local Star Lists for {{repoName}}.",
        sections: {
          lists: "Lists",
        },
        status: {
          noLists: "No lists available yet. Run sync first.",
          saved: "Saved.",
          saveFailed: "Save failed.",
          saving: "Saving...",
          needPat: "Connect a GitHub PAT first to sync Star Lists to GitHub.",
        },
      },
      progress: {
        sync: {
          idle: "Idle",
          fetching_star_lists: "Fetching Star Lists",
          fetching_starred_repos: "Fetching Starred Repos",
          scanning_list_membership: "Scanning List Membership",
          retrying_list_membership: "Retrying List Membership",
        },
      },
    },
  },
  "zh-CN": {
    translation: {
      common: {
        appName: "GitHub星标管理面板",
        actions: {
          cancel: "取消",
          clear: "清空",
          close: "关闭",
          save: "保存",
          settings: "设置",
        },
        labels: {
          error: "错误",
          failed: "失败",
          language: "语言",
          lastSync: "上次同步",
          progress: "进度",
          search: "搜索",
          stage: "阶段",
          status: "状态",
          unknown: "未知",
        },
        values: {
          all: "全部",
          allStarred: "全部收藏",
          none: "（无）",
          unclassified: "未分类",
        },
      },
      app: {
        subtitle: "更安心地管理 GitHub Star Lists。",
        actions: {
          assignList: "分配列表",
          connectPat: "连接 PAT",
          manageLists: "管理列表",
          retryFailedLists: "重试失败列表（{{count}}）",
          syncStarLists: "同步 Star Lists",
        },
        sections: {
          repositories: "仓库",
          starLists: "Star 列表",
          syncStatus: "同步状态",
        },
        sync: {
          detail: {
            connectPat: "请先连接 PAT，再导入你收藏的仓库。",
            preparing: "正在准备同步...",
            progress: "{{stage}}（{{current}}/{{total}}）",
            loaded: "已加载 {{repos}} 个仓库，覆盖 {{lists}} 个列表。",
            retryRecovered: "所有失败列表均已恢复。",
            retryFinished: "重试完成，仍有 {{count}} 个列表失败。",
            tokenOk: "Token 校验通过，当前登录为 {{login}}。",
            syncFailed: "同步失败",
            retryFailed: "重试失败",
            tokenValidationFailed: "Token 校验失败",
          },
          status: {
            completed: "已完成",
            failed: "失败",
            idle: "空闲",
            ready: "就绪",
            retrying: "重试中",
            running: "运行中",
          },
        },
        filters: {
          noList: "无列表",
          searchPlaceholder: "搜索名称或描述",
          updatedLastSixMonths: "近 6 个月有更新",
        },
        empty: {
          noListsTitle: "尚未加载 Star 列表。",
          noListsHint: "执行一次同步即可导入你已有的列表。",
          noDataTitle: "暂无数据。",
          noDataHint: "连接 PAT 并执行同步后即可加载已收藏仓库。",
          noFilteredTitle: "当前筛选条件下没有匹配仓库。",
          noFilteredHint: "尝试清空筛选，或先同步 Star 列表。",
        },
        values: {
          noDescription: "暂无描述",
        },
        nav: {
          openStarLists: "分类",
          closeListSidebar: "关闭分类侧栏",
        },
      },
      onboarding: {
        title: "README 抓取",
        description1:
          "同步时可抓取 README 片段，会增加 GitHub API 调用并延长同步时间。",
        description2: "是否现在启用 README 抓取？你也可以稍后在设置中修改。",
        skip: "暂不启用",
        enable: "启用 README 抓取",
      },
      patModal: {
        title: "连接 GitHub PAT",
        description:
          "Token 仅保存在本地，用于访问你的 Star Lists。建议权限：repo、read:user、read:star。",
        tokenLabel: "个人访问令牌",
        savePat: "保存 PAT",
      },
      settings: {
        closeAria: "关闭设置",
        title: "设置",
        description: "管理 Token、README 抓取和本地缓存。",
        sections: {
          language: "语言",
          localCache: "本地缓存",
          patManagement: "PAT 管理",
          readmeFetching: "README 抓取",
        },
        language: {
          appLanguage: "界面语言",
          auto: "自动（浏览器）",
          english: "English",
          chineseSimplified: "简体中文",
          promptLanguage: "Prompt 语言：{{language}}。Prompt 会跟随界面语言。",
          promptLanguageEnglish: "English",
          promptLanguageChinese: "中文",
        },
        pat: {
          githubPat: "GitHub PAT",
          githubLoginOptional: "GitHub 登录名（可选）",
          savePat: "保存 PAT",
          clearPat: "清除 PAT",
          required: "PAT 不能为空。",
          validating: "正在校验 PAT...",
          validated: "PAT 校验通过，当前登录为 {{login}}。",
          validationFailed: "PAT 校验失败（{{name}}）：{{message}}",
          cleared: "PAT 已清除。",
        },
        readme: {
          enable: "同步时启用 README 片段",
        },
        cache: {
          help: "清空 IndexedDB 数据以重置本地缓存。",
          clearButton: "清空本地缓存",
          cleared: "本地缓存已清空，正在刷新...",
        },
      },
      listManage: {
        closeAria: "关闭列表管理",
        title: "管理 Star 列表",
        intro: "在 GitHub 上新建、重命名或删除列表。更改会应用到你的账号并更新本地缓存。",
        createSection: "新建列表",
        editSection: "编辑列表",
        existingSection: "已有列表",
        nameLabel: "名称",
        descriptionLabel: "描述",
        isPrivate: "私有列表",
        create: "创建",
        save: "保存",
        cancelEdit: "取消编辑",
        edit: "编辑",
        delete: "删除",
        reposColumn: "仓库数",
        actionsColumn: "操作",
        deleteConfirm: "确认在 GitHub 上删除列表「{{name}}」？不会取消收藏仓库，仅删除该列表。",
        empty: "暂无列表。可在上方新建，或先同步导入已有列表。",
        needPat: "请先连接 GitHub PAT。",
        nameRequired: "名称不能为空。",
        saveFailed: "保存列表失败。",
        deleteFailed: "删除列表失败。",
        status: {
          creating: "创建中...",
          saving: "保存中...",
        },
      },
      assignList: {
        closeAria: "关闭分配列表",
        title: "分配列表",
        description: "为 {{repoName}} 选择本地 Star 列表。",
        sections: {
          lists: "列表",
        },
        status: {
          noLists: "暂无列表，请先同步。",
          saved: "已保存。",
          saveFailed: "保存失败。",
          saving: "保存中...",
          needPat: "请先连接 GitHub PAT，才能将 Star 列表同步到 GitHub。",
        },
      },
      progress: {
        sync: {
          idle: "空闲",
          fetching_star_lists: "正在拉取 Star 列表",
          fetching_starred_repos: "正在拉取已收藏仓库",
          scanning_list_membership: "正在扫描列表成员关系",
          retrying_list_membership: "正在重试列表成员关系",
        },
      },
    },
  },
} as const;
