attached i18n to html language

This commit is contained in:
2024-02-16 17:21:38 +01:00
parent 50692ee6fe
commit a8e40dd759

View File

@@ -3,11 +3,13 @@ import { inter } from '@/app/ui/fonts';
export default function RootLayout({ export default function RootLayout({
children, children,
params: { locale },
}: { }: {
children: React.ReactNode; children: React.ReactNode;
params: { locale:string };
}) { }) {
return ( return (
<html lang="en"> <html lang={locale}>
<body className={`${inter.className} antialiased`}>{children}</body> <body className={`${inter.className} antialiased`}>{children}</body>
</html> </html>
); );