diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f0a1bf9..e89f824 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -12,7 +12,8 @@ export default async function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { - const locale = (await cookies()).get('lang')?.value || 'en'; + const cookieStore = await cookies(); + const locale = cookieStore.get('lang')?.value || 'en'; return ( diff --git a/src/app/page.tsx b/src/app/page.tsx index 20d667f..77a6fad 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default async function Home() {
{t('pages_home_title') as string} - + {/* */}
); }