diff --git a/apps/web/lib/app-providers.tsx b/apps/web/lib/app-providers.tsx index a7bfcba9ea7303..e8f82baeb90c27 100644 --- a/apps/web/lib/app-providers.tsx +++ b/apps/web/lib/app-providers.tsx @@ -75,7 +75,8 @@ const CustomI18nextProvider = (props: AppPropsWithoutNonce) => { **/ const session = useSession(); - const locale = session?.data?.user.locale ?? props.pageProps.newLocale; + const locale = + session?.data?.user.locale ?? typeof window !== "undefined" ? window.document.documentElement.lang : "en"; useEffect(() => { try {