import type { Locale, TranslationTree } from '../i18n';

export const egressPrivateTranslations: Record<Locale, TranslationTree> = {
  en: {
    breadcrumb1: 'Security Protection',
    breadcrumb2: 'Data & Component Trust',
    breadcrumb3: 'Egress Private Exceptions',
    eyebrow: 'Egress Proxy · Private Network Allowlist',
    title: 'Egress Private Exceptions',
    subtitle:
      'Allow selected private CIDR:port targets through clawmanager-egress-proxy for specific users or instances. Prefer /32 when possible.',
    statEntries: 'Exceptions',
    statEntriesSub: 'egress_private_exceptions',
    formTitle: 'Add exception',
    formTitleEdit: 'Edit exception',
    scopeType: 'Scope',
    scopeInstance: 'Instance',
    scopeUser: 'User',
    scopeId: 'Scope ID',
    cidr: 'CIDR',
    port: 'Port',
    description: 'Description',
    enabled: 'Enabled',
    create: 'Create',
    edit: 'Edit',
    save: 'Save',
    cancel: 'Cancel',
    refresh: 'Refresh',
    delete: 'Delete',
    empty: 'No private exceptions yet.',
    loadFail: 'Failed to load exceptions',
    saveFail: 'Failed to save exception',
    deleteConfirm: 'Delete this private exception?',
    deleteFail: 'Failed to delete exception',
    cidrHint: 'Example: 10.255.25.3/32 or 172.19.0.0/16',
    pickInstance: 'Select instance',
    pickUser: 'Select user',
    colScope: 'Scope',
    colCidr: 'CIDR',
    colPort: 'Port',
    colEnabled: 'Enabled',
    colDesc: 'Description',
    colActions: 'Actions',
  },
  zh: {
    breadcrumb1: '安全防护',
    breadcrumb2: '数据与组件可信',
    breadcrumb3: 'Egress 私网例外',
    eyebrow: 'Egress 代理 · 私网放行',
    title: 'Egress 私网例外',
    subtitle:
      '按用户/实例配置 CIDR+端口，允许经 clawmanager-egress-proxy 访问私网目标。尽量使用 /32。',
    statEntries: '例外条目',
    statEntriesSub: 'egress_private_exceptions',
    formTitle: '新增例外',
    formTitleEdit: '编辑例外',
    scopeType: '范围',
    scopeInstance: '实例',
    scopeUser: '用户',
    scopeId: '范围 ID',
    cidr: 'CIDR',
    port: '端口',
    description: '说明',
    enabled: '启用',
    create: '创建',
    edit: '编辑',
    save: '保存',
    cancel: '取消',
    refresh: '刷新',
    delete: '删除',
    empty: '暂无私网例外。',
    loadFail: '加载例外失败',
    saveFail: '保存例外失败',
    deleteConfirm: '确认删除该私网例外？',
    deleteFail: '删除例外失败',
    cidrHint: '例如：10.255.25.3/32 或 172.19.0.0/16',
    pickInstance: '选择实例',
    pickUser: '选择用户',
    colScope: '范围',
    colCidr: 'CIDR',
    colPort: '端口',
    colEnabled: '启用',
    colDesc: '说明',
    colActions: '操作',
  },
  ja: {
    breadcrumb1: 'セキュリティ保護',
    breadcrumb2: 'データとコンポーネントの信頼性',
    breadcrumb3: 'Egress プライベート例外',
    eyebrow: 'Egress Proxy · プライベート許可',
    title: 'Egress プライベート例外',
    subtitle:
      'ユーザー/インスタンス単位で CIDR+ポートを許可し、egress proxy 経由のプライベート通信を可能にします。可能なら /32 を推奨。',
    statEntries: '例外',
    statEntriesSub: 'egress_private_exceptions',
    formTitle: '例外を追加',
    formTitleEdit: '例外を編集',
    scopeType: 'スコープ',
    scopeInstance: 'インスタンス',
    scopeUser: 'ユーザー',
    scopeId: 'スコープ ID',
    cidr: 'CIDR',
    port: 'ポート',
    description: '説明',
    enabled: '有効',
    create: '作成',
    edit: '編集',
    save: '保存',
    cancel: 'キャンセル',
    refresh: '更新',
    delete: '削除',
    empty: 'プライベート例外はまだありません。',
    loadFail: '読み込みに失敗しました',
    saveFail: '保存に失敗しました',
    deleteConfirm: 'この例外を削除しますか？',
    deleteFail: '削除に失敗しました',
    cidrHint: '例: 10.255.25.3/32 または 172.19.0.0/16',
    pickInstance: 'インスタンスを選択',
    pickUser: 'ユーザーを選択',
    colScope: 'スコープ',
    colCidr: 'CIDR',
    colPort: 'ポート',
    colEnabled: '有効',
    colDesc: '説明',
    colActions: '操作',
  },
  ko: {
    breadcrumb1: '보안 보호',
    breadcrumb2: '데이터 및 구성 요소 신뢰',
    breadcrumb3: 'Egress 사설망 예외',
    eyebrow: 'Egress Proxy · 사설망 허용',
    title: 'Egress 사설망 예외',
    subtitle:
      '사용자/인스턴스별로 CIDR+포트를 허용하여 egress proxy를 통한 사설망 접근을 엽니다. 가능하면 /32를 사용하세요.',
    statEntries: '예외',
    statEntriesSub: 'egress_private_exceptions',
    formTitle: '예외 추가',
    formTitleEdit: '예외 편집',
    scopeType: '범위',
    scopeInstance: '인스턴스',
    scopeUser: '사용자',
    scopeId: '범위 ID',
    cidr: 'CIDR',
    port: '포트',
    description: '설명',
    enabled: '사용',
    create: '생성',
    edit: '편집',
    save: '저장',
    cancel: '취소',
    refresh: '새로고침',
    delete: '삭제',
    empty: '사설망 예외가 없습니다.',
    loadFail: '예외 로드 실패',
    saveFail: '예외 저장 실패',
    deleteConfirm: '이 예외를 삭제할까요?',
    deleteFail: '예외 삭제 실패',
    cidrHint: '예: 10.255.25.3/32 또는 172.19.0.0/16',
    pickInstance: '인스턴스 선택',
    pickUser: '사용자 선택',
    colScope: '범위',
    colCidr: 'CIDR',
    colPort: '포트',
    colEnabled: '사용',
    colDesc: '설명',
    colActions: '작업',
  },
  de: {
    breadcrumb1: 'Sicherheitsschutz',
    breadcrumb2: 'Daten- & Komponentenvertrauen',
    breadcrumb3: 'Egress-Privatnetz-Ausnahmen',
    eyebrow: 'Egress-Proxy · Privatnetz-Freigabe',
    title: 'Egress-Privatnetz-Ausnahmen',
    subtitle:
      'Erlaubt ausgewählte private CIDR:Port-Ziele über clawmanager-egress-proxy für Benutzer oder Instanzen. Bevorzugen Sie /32.',
    statEntries: 'Ausnahmen',
    statEntriesSub: 'egress_private_exceptions',
    formTitle: 'Ausnahme hinzufügen',
    formTitleEdit: 'Ausnahme bearbeiten',
    scopeType: 'Bereich',
    scopeInstance: 'Instanz',
    scopeUser: 'Benutzer',
    scopeId: 'Bereichs-ID',
    cidr: 'CIDR',
    port: 'Port',
    description: 'Beschreibung',
    enabled: 'Aktiv',
    create: 'Erstellen',
    edit: 'Bearbeiten',
    save: 'Speichern',
    cancel: 'Abbrechen',
    refresh: 'Aktualisieren',
    delete: 'Löschen',
    empty: 'Noch keine privaten Ausnahmen.',
    loadFail: 'Laden fehlgeschlagen',
    saveFail: 'Speichern fehlgeschlagen',
    deleteConfirm: 'Diese Ausnahme löschen?',
    deleteFail: 'Löschen fehlgeschlagen',
    cidrHint: 'Beispiel: 10.255.25.3/32 oder 172.19.0.0/16',
    pickInstance: 'Instanz wählen',
    pickUser: 'Benutzer wählen',
    colScope: 'Bereich',
    colCidr: 'CIDR',
    colPort: 'Port',
    colEnabled: 'Aktiv',
    colDesc: 'Beschreibung',
    colActions: 'Aktionen',
  },
};
