feat(roadmap): integrate validated cleanup localisation and backup fixes

This commit is contained in:
cesnimda
2026-11-02 23:15:05 +01:00
parent db818e5ebd
commit 557efde073
68 changed files with 68225 additions and 24 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import { api } from "./api";
import { translations } from "./i18n/translations";
// Mirrors WorkspaceOverviewDto. Read-only aggregate — the workspace owns no data.
export type WorkspaceCv = {
@@ -93,7 +94,9 @@ export const WORKSPACE_SECTIONS: { key: WorkspaceSectionKey; label: string }[] =
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 token = systemKey.replace(/-([a-z])/g, (_, letter: string) => letter.toUpperCase());
return Object.hasOwn(translations.en, `checklistItem_${token}`)
&& Object.hasOwn(translations.en, `checklistItem_${token}Description`) ? token : null;
}
const LEGACY_WORKSPACE_SECTIONS: Record<string, WorkspaceSectionKey> = {