demarches-normaliennes/app/javascript/components/Layout.tsx

13 lines
372 B
TypeScript
Raw Normal View History

2024-05-06 18:07:29 +02:00
import { I18nProvider } from 'react-aria-components';
import { StrictMode, type ReactNode } from 'react';
export function Layout({ children }: { children: ReactNode }) {
const locale = document.documentElement.lang;
console.debug(`locale: ${locale}`);
return (
<I18nProvider locale={locale}>
<StrictMode>{children}</StrictMode>
</I18nProvider>
);
}