first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
17
apps/web/app/(saas)/layout.tsx
Normal file
17
apps/web/app/(saas)/layout.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue