fix(i18n): finish career activity copy

This commit is contained in:
cesnimda
2026-08-29 21:57:40 +02:00
parent a704c75440
commit 457f0601c0
13 changed files with 272 additions and 91 deletions
@@ -0,0 +1,16 @@
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;
}