// Bilingual labels printed on the Executive Meetings PDF. Centralised
// here (instead of hardcoded inside the route) so the title and column
// headings have a single source of truth that matches the i18n keys
// used by the frontend.
//
// IMPORTANT: keep these in lock-step with the matching keys under
//   `executiveMeetings.pdf.{title,no,meeting,attendees,time,none}`
// in `artifacts/tx-os/src/locales/ar.json` and `en.json`. The route
// reads from this module; the frontend reads from the JSON locales.
// Both must agree.

export type PdfLang = "ar" | "en";

export type PdfLabels = {
  title: string;
  no: string;
  meeting: string;
  attendees: string;
  time: string;
  none: string;
  recordedBy: string;
};

export const PDF_LABELS: Record<PdfLang, PdfLabels> = {
  ar: {
    // Verbatim from the printed sample the user supplied.
    title: "قائمة بأسماء حضور الاجتماعات",
    no: "#",
    meeting: "الاجتماع",
    attendees: "الحضور",
    time: "الوقت",
    none: "لا توجد اجتماعات في هذا اليوم.",
    recordedBy: "مقيد",
  },
  en: {
    title: "Meeting Attendance List",
    no: "#",
    meeting: "Meeting",
    attendees: "Attendees",
    time: "Time",
    none: "No meetings on this day.",
    recordedBy: "Recorded by",
  },
};

export function getPdfLabels(lang: PdfLang): PdfLabels {
  return PDF_LABELS[lang];
}
