
* feat: setup translations * feat: i18n setup * Update pages/settings/profile.tsx Co-authored-by: Alex Johansson <alexander@n1s.se> * fix: abstract locale hook * fix: set default locale if preferred locale is not supported * Revert "fix: set default locale if preferred locale is not supported" This reverts commit e2a3d81371ee02a033520058a1d7d61cffeffc94. * fix: set default locale if preferred locale is not supported * fix: use 1 namespace and remove unnecessary logs * fix: yarn.lock * fix: linting errors Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Alex Johansson <alexander@n1s.se>
25 lines
716 B
TypeScript
25 lines
716 B
TypeScript
import { appWithTranslation } from "next-i18next";
|
|
import { DefaultSeo } from "next-seo";
|
|
import type { AppProps as NextAppProps } from "next/app";
|
|
|
|
import AppProviders from "@lib/app-providers";
|
|
import { seoConfig } from "@lib/config/next-seo.config";
|
|
|
|
import "../styles/globals.css";
|
|
|
|
// Workaround for https://github.com/vercel/next.js/issues/8592
|
|
export type AppProps = NextAppProps & {
|
|
/** Will be defined only is there was an error */
|
|
err?: Error;
|
|
};
|
|
|
|
function MyApp({ Component, pageProps, err }: AppProps) {
|
|
return (
|
|
<AppProviders>
|
|
<DefaultSeo {...seoConfig.defaultNextSeo} />
|
|
<Component {...pageProps} err={err} />
|
|
</AppProviders>
|
|
);
|
|
}
|
|
|
|
export default appWithTranslation(MyApp);
|