diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 5567ada59..f92657f33 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -223,6 +223,7 @@ "infosFound": "info{s} found", "remediationPlan": "Remediation plan", "treatmentPlan": "Treatment plan", + "plan": "Plan", "asPDF": "as PDF", "asCSV": "as CSV", "draft": "Draft", diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index bf6b17bae..c6fda1d8b 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -223,6 +223,7 @@ "infosFound": "info{s} trouvée{s}", "remediationPlan": "Plan de remédiation", "treatmentPlan": "Plan de traitement", + "plan": "Plan", "asPDF": "en PDF", "asCSV": "en CSV", "draft": "Brouillon", diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index fadc08ae0..fe928108e 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -29,15 +29,16 @@ crumbs = tokens.map((t) => { tokenPath += '/' + t; if (t === $breadcrumbObject.id) { - if ($breadcrumbObject.name) title = $breadcrumbObject.name; - else title = $breadcrumbObject.email; + if ($breadcrumbObject.name) t = $breadcrumbObject.name; + else t = $breadcrumbObject.email; } else if (t === 'folders') { t = 'domains'; } t = t.replace(/-/g, ' '); t = capitalizeSecondWord(t); + console.log(title) return { - label: $page.data.label || title || t, + label: $page.data.label || t, href: Object.keys(listViewFields).includes(tokens[0]) ? tokenPath : null }; }); diff --git a/frontend/src/lib/utils/locales.ts b/frontend/src/lib/utils/locales.ts index 357b6fd2d..1b5f07184 100644 --- a/frontend/src/lib/utils/locales.ts +++ b/frontend/src/lib/utils/locales.ts @@ -254,7 +254,9 @@ export function localItems(languageTag: string): LocalItems { lossOfAccountabilityText: m.lossOfAccountabilityText({ languageTag: languageTag }), lossOfAccountabilityChoice1: m.lossOfAccountabilityChoice1({ languageTag: languageTag }), lossOfAccountabilityChoice2: m.lossOfAccountabilityChoice2({ languageTag: languageTag }), - lossOfAccountabilityChoice3: m.lossOfAccountabilityChoice3({ languageTag: languageTag }) + lossOfAccountabilityChoice3: m.lossOfAccountabilityChoice3({ languageTag: languageTag }), + composer: m.composer({ languageTag: languageTag }), + plan: m.plan({ languageTag: languageTag }), }; return LOCAL_ITEMS; }