From 6d800b1077eb0277440b1d12ae4bae0ddb03f1bb Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 31 May 2026 11:36:55 +0200 Subject: [PATCH] design(frontend): align glossaries page typography with translation page editorial style --- .../src/app/dashboard/glossaries/page.tsx | 211 ++++++++++-------- frontend/src/lib/i18n.tsx | 4 +- 2 files changed, 120 insertions(+), 95 deletions(-) diff --git a/frontend/src/app/dashboard/glossaries/page.tsx b/frontend/src/app/dashboard/glossaries/page.tsx index e3bd807..878ac95 100644 --- a/frontend/src/app/dashboard/glossaries/page.tsx +++ b/frontend/src/app/dashboard/glossaries/page.tsx @@ -223,21 +223,37 @@ export default function GlossariesPage() { return ; } + const renderTitle = (title: string) => { + const lastSpaceIndex = title.lastIndexOf(' '); + if (lastSpaceIndex === -1) return title; + const firstPart = title.substring(0, lastSpaceIndex); + const lastWord = title.substring(lastSpaceIndex + 1); + return ( + <> + {firstPart} {lastWord} + + ); + }; + return (
{/* ── Editorial Header ───────────────────────────────────── */}
- {t('glossaries.yourGlossaries')} -

- {t('glossaries.title')} + + {t('glossaries.yourGlossaries') || "Vos Glossaires"} + +

+ {renderTitle(t('glossaries.title') || "Glossaires & Contexte")}

-

{t('glossaries.description')}

+

+ {t('glossaries.description') || "Gérez vos glossaires et instructions de contexte pour des traductions plus précises."} +