Load locale ondemand + spanish locale (#249)

This commit is contained in:
Luke Vella 2022-07-28 10:39:58 +01:00 committed by GitHub
parent 0f35bd0518
commit c2aea134ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 700 additions and 455 deletions

View file

@ -14,8 +14,6 @@ import { MutationCache } from "react-query";
import superjson from "superjson";
import Maintenance from "@/components/maintenance";
import ModalProvider from "@/components/modal/modal-provider";
import PreferencesProvider from "@/components/preferences/preferences-provider";
import { AppRouter } from "./api/trpc/[trpc]";
@ -35,16 +33,12 @@ const MyApp: NextPage<AppProps> = ({ Component, pageProps }) => {
selfHosted={true}
enabled={!!process.env.PLAUSIBLE_DOMAIN}
>
<PreferencesProvider>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<CrispChat />
<Toaster />
<ModalProvider>
<Component {...pageProps} />
</ModalProvider>
</PreferencesProvider>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<CrispChat />
<Toaster />
<Component {...pageProps} />
</PlausibleProvider>
);
};