/**
 * Contractor portal CSV column headers — shared by zync-api export and i18n keys.
 */
import en from './en.json'
import he from './he.json'

const CSV_KEYS = [
  'contractorPortal.csv.date',
  'contractorPortal.csv.project',
  'contractorPortal.csv.task',
  'contractorPortal.csv.hours',
  'contractorPortal.csv.status',
  'contractorPortal.csv.notes',
] as const

export function contractorPortalCsvHeaders(locale: 'he' | 'en'): string[] {
  const dict = locale === 'he' ? he : en
  return CSV_KEYS.map((key) => dict[key as keyof typeof dict] as string)
}
