From cbba1ec2ff9dccf6d4a456e3d411b6d9f8304e7f Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 2 Jul 2026 15:36:48 +0200 Subject: [PATCH] fix: translate settings page title and subtitle Settings layout header ("Settings" / "Manage your account, preferences, and integrations.") was hardcoded English, shown on every settings sub-page. Co-Authored-By: Claude Sonnet 5 --- apps/web/app/(app)/settings/layout.tsx | 12 +++++++++--- apps/web/messages/en.json | 1 + apps/web/messages/fr.json | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/web/app/(app)/settings/layout.tsx b/apps/web/app/(app)/settings/layout.tsx index a3fcc19..2446339 100644 --- a/apps/web/app/(app)/settings/layout.tsx +++ b/apps/web/app/(app)/settings/layout.tsx @@ -1,11 +1,17 @@ +import { headers } from "next/headers"; +import { auth } from "@/lib/auth/server"; import { SettingsSidebar } from "@/components/settings/settings-sidebar"; +import { getMessages } from "@/lib/i18n/server"; + +export default async function SettingsLayout({ children }: { children: React.ReactNode }) { + const session = await auth.api.getSession({ headers: await headers() }); + const m = getMessages((session?.user as { locale?: string })?.locale); -export default function SettingsLayout({ children }: { children: React.ReactNode }) { return (
-

Settings

-

Manage your account, preferences, and integrations.

+

{m.settings.title}

+

{m.settings.subtitle}

diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index cb78af8..4a497a4 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -172,6 +172,7 @@ }, "settings": { "title": "Settings", + "subtitle": "Manage your account, preferences, and integrations.", "profile": "Profile", "language": "Language", "units": "Units", diff --git a/apps/web/messages/fr.json b/apps/web/messages/fr.json index 06f9276..02ed264 100644 --- a/apps/web/messages/fr.json +++ b/apps/web/messages/fr.json @@ -172,6 +172,7 @@ }, "settings": { "title": "Paramètres", + "subtitle": "Gérez votre compte, vos préférences et vos intégrations.", "profile": "Profil", "language": "Langue", "units": "Unités",