import type { LanguageCode } from "@/components/layout/header/header-data";

export type NotificationSettingTranslation = {
  breadcrumbDashboard: string;
  breadcrumbNotificationSettings: string;

  pageTitle: string;
  pageDescription: string;

  saveChanges: string;
  saving: string;

  systemTab: string;
  gmailTab: string;

  systemTitle: string;
  systemDescription: string;

  enableSystemTitle: string;
  enableSystemDescription: string;

  unreadBadgeTitle: string;
  unreadBadgeDescription: string;

  gmailTitle: string;
  gmailDescription: string;

  enableGmailTitle: string;
  enableGmailDescription: string;

  gmailAddress: string;
  gmailPlaceholder: string;

  change: string;
  update: string;
  cancel: string;

  gmailRequired: string;
  invalidGmail: string;
  gmailUpdated: string;

  settingsSaved: string;
  settingsSaveFailed: string;

  lastUpdated: string;
};

export const notificationSettingTranslations: Record<
  LanguageCode,
  NotificationSettingTranslation
> = {
  en: {
    breadcrumbDashboard: "Dashboard",
    breadcrumbNotificationSettings: "Notification Settings",

    pageTitle: "Notification Settings",
    pageDescription:
      "Manage how you receive notifications in the system and via Gmail.",

    saveChanges: "Save Changes",
    saving: "Saving...",

    systemTab: "System Notification",
    gmailTab: "Gmail Notification",

    systemTitle: "System Notification",
    systemDescription: "Receive notifications inside the system.",

    enableSystemTitle: "Enable System Notification",
    enableSystemDescription:
      "Receive notifications in the application.",

    unreadBadgeTitle: "Show Unread Badge",
    unreadBadgeDescription:
      "Show unread count on the notification icon.",

    gmailTitle: "Gmail Notification",
    gmailDescription:
      "Receive notifications through your Gmail.",

    enableGmailTitle: "Enable Gmail Notification",
    enableGmailDescription:
      "Send notifications to your Gmail address.",

    gmailAddress: "Gmail Address",
    gmailPlaceholder: "example@gmail.com",

    change: "Change",
    update: "Update",
    cancel: "Cancel",

    gmailRequired: "Gmail address is required.",
    invalidGmail: "Please enter a valid Gmail address.",
    gmailUpdated: "Gmail address updated successfully.",

    settingsSaved:
      "Notification settings saved successfully.",
    settingsSaveFailed:
      "Failed to save notification settings.",

    lastUpdated: "Last updated",
  },

  kh: {
    breadcrumbDashboard: "ផ្ទាំងគ្រប់គ្រង",
    breadcrumbNotificationSettings:
      "ការកំណត់ការជូនដំណឹង",

    pageTitle: "ការកំណត់ការជូនដំណឹង",
    pageDescription:
      "គ្រប់គ្រងរបៀបដែលអ្នកទទួលការជូនដំណឹងក្នុងប្រព័ន្ធ និងតាមរយៈ Gmail។",

    saveChanges: "រក្សាទុកការផ្លាស់ប្ដូរ",
    saving: "កំពុងរក្សាទុក...",

    systemTab: "ការជូនដំណឹងក្នុងប្រព័ន្ធ",
    gmailTab: "ការជូនដំណឹងតាម Gmail",

    systemTitle: "ការជូនដំណឹងក្នុងប្រព័ន្ធ",
    systemDescription:
      "ទទួលការជូនដំណឹងនៅខាងក្នុងប្រព័ន្ធ។",

    enableSystemTitle:
      "បើកការជូនដំណឹងក្នុងប្រព័ន្ធ",
    enableSystemDescription:
      "ទទួលការជូនដំណឹងនៅក្នុងកម្មវិធី។",

    unreadBadgeTitle:
      "បង្ហាញចំនួនមិនទាន់អាន",
    unreadBadgeDescription:
      "បង្ហាញចំនួនការជូនដំណឹងដែលមិនទាន់បានអាន។",

    gmailTitle: "ការជូនដំណឹងតាម Gmail",
    gmailDescription:
      "ទទួលការជូនដំណឹងតាមរយៈ Gmail របស់អ្នក។",

    enableGmailTitle:
      "បើកការជូនដំណឹងតាម Gmail",
    enableGmailDescription:
      "ផ្ញើការជូនដំណឹងទៅកាន់អាសយដ្ឋាន Gmail របស់អ្នក។",

    gmailAddress: "អាសយដ្ឋាន Gmail",
    gmailPlaceholder: "example@gmail.com",

    change: "ផ្លាស់ប្ដូរ",
    update: "កែប្រែ",
    cancel: "បោះបង់",

    gmailRequired:
      "តម្រូវឱ្យមានអាសយដ្ឋាន Gmail។",
    invalidGmail:
      "សូមបញ្ចូលអាសយដ្ឋាន Gmail ឱ្យបានត្រឹមត្រូវ។",
    gmailUpdated:
      "បានកែប្រែអាសយដ្ឋាន Gmail ដោយជោគជ័យ។",

    settingsSaved:
      "បានរក្សាទុកការកំណត់ការជូនដំណឹងដោយជោគជ័យ។",
    settingsSaveFailed:
      "មិនអាចរក្សាទុកការកំណត់ការជូនដំណឹងបានទេ។",

    lastUpdated: "បានកែប្រែចុងក្រោយ",
  },
};