From 740f2fbd6b3c9e5ce82e999eec3c316ade61e2ca Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Thu, 27 Feb 2025 11:44:07 +0100 Subject: [PATCH] fix: error on i18n default lang --- src/app/layout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0131b85..b394b3b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,7 +7,6 @@ import { PreferencesProvider } from "@/contexts/PreferencesContext"; import { I18nProvider } from "@/components/providers/I18nProvider"; import "@/i18n/i18n"; // Import i18next configuration import { cookies } from "next/headers"; -import { defaultLocale } from "@/i18n/config"; const inter = Inter({ subsets: ["latin"] }); @@ -61,7 +60,7 @@ export const metadata: Metadata = { export default function RootLayout({ children }: { children: React.ReactNode }) { const cookieStore = cookies(); - const locale = cookieStore.get("NEXT_LOCALE")?.value || defaultLocale; + const locale = cookieStore.get("NEXT_LOCALE")?.value || "fr"; return (