35 lines
673 B
TypeScript
35 lines
673 B
TypeScript
"use client";
|
|
import "./globals.css";
|
|
import i18next from "i18next";
|
|
import { I18nextProvider } from "react-i18next";
|
|
import koBase from "../public/locales/ko/message.json";
|
|
import { StoreProvider } from "./store";
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
i18next.init({
|
|
lng: "ko",
|
|
fallbackLng: "ko",
|
|
resources: {
|
|
ko: {
|
|
base: koBase,
|
|
},
|
|
},
|
|
});
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
<I18nextProvider i18n={i18next}>
|
|
<StoreProvider>
|
|
{children}
|
|
</StoreProvider>
|
|
</I18nextProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|