chore(js): update coldwired and react
This commit is contained in:
parent
316a33f97b
commit
1e11ad4ce6
24 changed files with 108 additions and 106 deletions
12
app/javascript/components/Layout.tsx
Normal file
12
app/javascript/components/Layout.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue