import { NextIntlClientProvider } from "next-intl"; import { getMessages } from "next-intl/server"; import { routing } from "@/i18n/routing"; import { notFound } from "next/navigation"; import { NavShell } from "@/components/layout/nav-shell"; export function generateStaticParams() { return routing.locales.map((locale) => ({ locale })); } export default async function LocaleLayout({ children, params, }: { children: React.ReactNode; params: Promise<{ locale: string }>; }) { const { locale } = await params; if (!routing.locales.includes(locale as any)) { notFound(); } const messages = await getMessages(); return (