fix(i18n): finish career activity copy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user