From 7cb019081b0b4712d798533ce8fd6cadd0e8d3ad Mon Sep 17 00:00:00 2001 From: Ivan Mercedes Date: Tue, 7 Jul 2026 19:57:36 -0400 Subject: [PATCH] feat(i18n): translate settings page titles --- messages/en.json | 2 ++ src/app/(dashboard)/settings/page.tsx | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/messages/en.json b/messages/en.json index a35721d..04405c0 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1130,6 +1130,8 @@ } }, "Settings": { + "pageTitle": "Settings", + "pageDesc": "Everything in one place — your account and your workspace. Pick a section to manage it.", "overview": { "notSetup": "Not set up yet", "connected": "Connected", diff --git a/src/app/(dashboard)/settings/page.tsx b/src/app/(dashboard)/settings/page.tsx index 9f6971d..2954666 100644 --- a/src/app/(dashboard)/settings/page.tsx +++ b/src/app/(dashboard)/settings/page.tsx @@ -2,6 +2,7 @@ import { useMemo, type ReactNode } from 'react'; import { useRouter, useSearchParams } from 'next/navigation'; +import { useTranslations } from 'next-intl'; import { useAuth } from '@/hooks/use-auth'; import { useTheme } from '@/hooks/use-theme'; @@ -26,6 +27,7 @@ export default function SettingsPage() { const searchParams = useSearchParams(); const { defaultCurrency } = useAuth(); const { mode } = useTheme(); + const t = useTranslations('Settings'); // The URL (`?tab=`) is the single source of truth for the active // section — deep-linkable, and it keeps the existing links in the @@ -67,11 +69,10 @@ export default function SettingsPage() {

- Settings + {t('pageTitle')}

- Everything in one place — your account and your workspace. Pick a - section to manage it. + {t('pageDesc')}