initial commit for i18n

This commit is contained in:
daniel31x13
2024-05-27 17:42:29 -04:00
parent b0ea14737f
commit 17cdb7efa4
8 changed files with 140 additions and 5 deletions
+6 -2
View File
@@ -9,9 +9,11 @@ import toast from "react-hot-toast";
import { Toaster, ToastBar } from "react-hot-toast";
import { Session } from "next-auth";
import { isPWA } from "@/lib/client/utils";
import useInitialData from "@/hooks/useInitialData";
// import useInitialData from "@/hooks/useInitialData";
import { appWithTranslation } from "next-i18next";
import nextI18nextConfig from "../next-i18next.config";
export default function App({
function App({
Component,
pageProps,
}: AppProps<{
@@ -96,6 +98,8 @@ export default function App({
);
}
export default appWithTranslation(App);
// function GetData({ children }: { children: React.ReactNode }) {
// const status = useInitialData();
// return typeof window !== "undefined" && status !== "loading" ? (