diff --git a/frontend/src/app/dashboard/profile/page.tsx b/frontend/src/app/dashboard/profile/page.tsx index fef0f32..bad8287 100644 --- a/frontend/src/app/dashboard/profile/page.tsx +++ b/frontend/src/app/dashboard/profile/page.tsx @@ -57,6 +57,18 @@ const UI_LANGUAGES: { value: Locale; label: string; flag: string }[] = [ { value: 'fa', label: 'فارسی', flag: '🇮🇷' }, ]; +function formatTitleWithItalic(title: string) { + const words = title.split(' '); + if (words.length > 1) { + return ( + <> + {words.slice(0, -1).join(' ')} {words[words.length - 1]} + > + ); + } + return title; +} + /* ── Main component ───────────────────────────────────────────── */ export default function ProfilePage() { const router = useRouter(); @@ -171,10 +183,10 @@ export default function ProfilePage() { {/* ── Editorial Header ───────────────────────────────────── */}
{t('profile.header.subtitle')}
+{t('profile.header.subtitle')}
@@ -559,7 +571,7 @@ export default function ProfilePage() {
@@ -577,7 +589,7 @@ export default function ProfilePage() {