Files
Momento/memento-note/app/(auth)/layout.tsx
Antigravity ebf6f16fde fix(ui): voix Second Brain à la connexion et libellés du rail
Remplace le titre « notepad » et le jargon (Intelligence OS, SM-2) par des mots lisibles, et aligne la langue des pages d’auth sur le reste du site.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 10:56:00 +00:00

23 lines
854 B
TypeScript

import { headers } from 'next/headers';
import { detectUserLanguage, parseAcceptLanguage } from '@/lib/i18n/detect-user-language';
import { loadTranslations } from '@/lib/i18n/load-translations';
import { LanguageProvider } from '@/lib/i18n/LanguageProvider';
import { AuthShell } from '@/components/auth-shell';
export default async function AuthLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const headersList = await headers();
const browserLang = parseAcceptLanguage(headersList.get('accept-language'));
const initialLanguage = await detectUserLanguage(browserLang);
const initialTranslations = await loadTranslations(initialLanguage);
return (
<LanguageProvider initialLanguage={initialLanguage} initialTranslations={initialTranslations}>
<AuthShell>{children}</AuthShell>
</LanguageProvider>
);
}