import type { TranslationKey } from "../../i18n/translations";

const completenessLabelKeys: Record<string, TranslationKey> = {
  "Personal details": "profileCvCompletenessPersonal",
  "Professional summary": "profileCvCompletenessSummary",
  Experience: "profileCvCompletenessExperience",
  Education: "profileCvCompletenessEducation",
  Skills: "profileCvCompletenessSkills",
  Projects: "profileCvCompletenessProjects",
  Languages: "profileCvCompletenessLanguages",
};

export function localizeCompletenessLabel(label: string, t: (key: TranslationKey) => string) {
  const key = completenessLabelKeys[label];
  return key ? t(key) : label;
}
