better-auth/apps/web/app/(saas)/layout.tsx

18 lines
520 B
TypeScript
Raw Permalink Normal View History

2025-10-29 13:43:43 +05:00
import { Document } from "@shared/components/Document";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getMessages } from "next-intl/server";
import type { PropsWithChildren } from "react";
export default async function LocaleLayout({ children }: PropsWithChildren) {
const locale = await getLocale();
const messages = await getMessages();
return (
<Document locale={locale}>
<NextIntlClientProvider messages={messages}>
{children}
</NextIntlClientProvider>
</Document>
);
}