import { translations } from './translations';

export type ReportLocale = 'en' | 'es';

export function useReportLocale(locale: ReportLocale = 'en') {
  const t = (key: string): string => {
    return translations[locale]?.[key] ?? translations.en?.[key] ?? key;
  };

  return { t, locale };
}
