// i18n strings for TR/EN

const TR = {
  nav: {
    workspace: "Çalışma Alanı",
    operations: "Operasyon",
    settings: "Ayarlar",
    dashboard: "Genel Bakış",
    patients: "Hastalar",
    schedule: "Takvim",
    treatments: "Tedaviler",
    stock: "Stok & Malzeme",
    clinics: "Klinikler",
    finance: "Finans & Hakediş",
    reports: "Raporlar",
    preferences: "Tercihler",
    help: "Yardım Merkezi",
    switch: "Hesap değiştir",
  },
  topbar: {
    search: "Hasta, klinik, işlem ara...",
    quickAdd: "Hızlı ekle",
    notifications: "Bildirimler",
    today: "Bugün",
  },
  upgrade: {
    title: "Premium",
    body: "Ekip yönetimi, AI not asistanı ve WhatsApp entegrasyonu için yükseltin.",
    cta: "Yükselt",
  },
  statuses: {
    active: "Devam ediyor",
    done: "Tamamlandı",
    planned: "Planlandı",
    waiting: "Bekliyor",
  },
  dash: {
    greet: "Günaydın, Mehmet",
    sub: "Bugün 4 randevu var. Bu ay hakedişin ₺23.945. Devam etmeye hazırsın.",
    week: "Bu hafta",
    month: "Bu ay",
    year: "Bu yıl",
    addPatient: "Hasta ekle",
    exportRep: "Rapor al",
    monthlyEarnings: "Bu ay hakediş",
    pendingPayments: "Bekleyen ödemeler",
    todayPatients: "Bugünkü hastalar",
    activeTreatments: "Aktif tedaviler",
    vsLastMonth: "geçen aya göre",
    incomeTrend: "Hakediş trendi",
    last6: "Son 6 ay",
    todaysSchedule: "Bugünkü program",
    upcomingControls: "Yaklaşan kontroller",
    inDays: (n) => n === 0 ? "Bugün" : n === 1 ? "Yarın" : `${n} gün sonra`,
    clinicReceivables: "Klinik bazlı alacaklar",
    clinic: "Klinik",
    earned: "Hakediş",
    received: "Tahsil",
    pending: "Kalan",
    viewAll: "Tümünü gör",
    procedureMix: "İşlem dağılımı",
    last30: "Son 30 gün",
  },
};

const EN = {
  nav: {
    workspace: "Workspace",
    operations: "Operations",
    settings: "Settings",
    dashboard: "Overview",
    patients: "Patients",
    schedule: "Schedule",
    treatments: "Treatments",
    stock: "Stock & Supplies",
    clinics: "Clinics",
    finance: "Finance & Payouts",
    reports: "Reports",
    preferences: "Preferences",
    help: "Help Center",
    switch: "Switch account",
  },
  topbar: {
    search: "Search patients, clinics, procedures...",
    quickAdd: "Quick add",
    notifications: "Notifications",
    today: "Today",
  },
  upgrade: {
    title: "Premium",
    body: "Unlock team, AI notes and WhatsApp integration.",
    cta: "Upgrade",
  },
  statuses: {
    active: "Active",
    done: "Completed",
    planned: "Planned",
    waiting: "Pending",
  },
  dash: {
    greet: "Good morning, Mehmet",
    sub: "You have 4 appointments today. This month's earnings ₺23,945. Ready to go.",
    week: "This week",
    month: "This month",
    year: "This year",
    addPatient: "Add patient",
    exportRep: "Export report",
    monthlyEarnings: "Monthly earnings",
    pendingPayments: "Pending payments",
    todayPatients: "Today's patients",
    activeTreatments: "Active treatments",
    vsLastMonth: "vs last month",
    incomeTrend: "Earnings trend",
    last6: "Last 6 months",
    todaysSchedule: "Today's schedule",
    upcomingControls: "Upcoming check-ups",
    inDays: (n) => n === 0 ? "Today" : n === 1 ? "Tomorrow" : `In ${n} days`,
    clinicReceivables: "Receivables by clinic",
    clinic: "Clinic",
    earned: "Earned",
    received: "Received",
    pending: "Pending",
    viewAll: "View all",
    procedureMix: "Procedure mix",
    last30: "Last 30 days",
  },
};

window.DentI18nStrings = { tr: TR, en: EN };
window.DentI18n = React.createContext(TR);
