Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Remove useless useChangeLanguage

Blue Mouse3f3851637569
diff --git a/web/app/root.tsx b/web/app/root.tsx
index 8c406d29d..4405e7a9e 100644
--- a/web/app/root.tsx
+++ b/web/app/root.tsx
@@ -26,7 +26,6 @@ import {
useSearchParams,
useLocation,
} from 'react-router'
-import { useChangeLanguage } from 'remix-i18next/react'
import { ExternalScripts } from 'remix-utils/external-scripts'
import { getAuthenticatedUser } from '~/api/api.server'
@@ -301,15 +300,13 @@ const Body = () => {
export default function App() {
const { locale, url, theme, REMIX_ENV } = useLoaderData<typeof loader>()
- const { pathname, search, hash } = useLocation()
+ const { pathname, search } = useLocation()
const { i18n } = useTranslation('common')
const [searchParams] = useSearchParams()
const urlObject = new URL(url)
urlObject.searchParams.delete('lng')
- useChangeLanguage(locale)
-
const isEmbedded = searchParams.get('embedded') === 'true'
const canonicalUrl = (() => {