test(ci): add exporter heading levels and a11y typography smoke; update MAIN_PLAN
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { getMessages } from '@/lib/i18n/getMessages'
|
||||
import type { AppLocale } from '@/lib/i18n/locales'
|
||||
import I18nProvider from '@/components/I18nProvider'
|
||||
import '../globals.css'
|
||||
|
||||
export const dynamic = 'force-static'
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: ReactNode
|
||||
params: Promise<{ locale: AppLocale }>
|
||||
}) {
|
||||
const { locale } = await params
|
||||
const messages = await getMessages(locale)
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<body>
|
||||
<I18nProvider locale={locale} messages={messages}>{children}</I18nProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user