fix(i18n): localize application workflows

Use stable checklist and interview keys for system copy while preserving user-authored content. Localize creation-tab errors, language selectors, match bands, dates, and selected-CV context.
This commit is contained in:
cesnimda
2026-08-29 16:51:59 +02:00
parent 9edcbfc5de
commit a704c75440
11 changed files with 173 additions and 37 deletions
@@ -89,6 +89,11 @@ export const WORKSPACE_SECTIONS: { key: WorkspaceSectionKey; label: string }[] =
{ key: "interview", label: "Interview Prep" },
];
export function checklistSystemTranslationToken(systemKey?: string | null): string | null {
if (!systemKey || systemKey.startsWith("learning:")) return null;
return systemKey.replace(/-([a-z])/g, (_, letter: string) => letter.toUpperCase());
}
const LEGACY_WORKSPACE_SECTIONS: Record<string, WorkspaceSectionKey> = {
match: "analysis",
"job-details": "overview",