added mail service
This commit is contained in:
29
app/[locale]/layout.tsx
Normal file
29
app/[locale]/layout.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { Inter } from 'next/font/google'
|
||||
import './globals.css'
|
||||
import { ReactElement } from 'react'
|
||||
import { I18nProviderClient } from '@/locales/client'
|
||||
import { lc } from '@/lib/utils'
|
||||
|
||||
const inter = Inter({ subsets: ['cyrillic'] })
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Create Next App', description: 'Generated by create next app',
|
||||
}
|
||||
|
||||
type Props = {
|
||||
params: { locale: string }; children: ReactElement;
|
||||
}
|
||||
|
||||
export default function RootLayout ({
|
||||
params: { locale }, children,
|
||||
}: Readonly<Props>) {
|
||||
|
||||
return (<html lang={lc(locale).java}>
|
||||
<body className={inter.className}>
|
||||
<I18nProviderClient locale={locale} fallback={<p>Loading...</p>}>
|
||||
{children}
|
||||
</I18nProviderClient>
|
||||
</body>
|
||||
</html>)
|
||||
}
|
||||
Reference in New Issue
Block a user