diff --git a/web/app/components/i18n.tsx b/web/app/components/i18n.tsx index 2493e5b5af..f04f8d6cbe 100644 --- a/web/app/components/i18n.tsx +++ b/web/app/components/i18n.tsx @@ -1,11 +1,10 @@ 'use client' import type { FC } from 'react' -import React, { useEffect, useState } from 'react' +import React, { useEffect } from 'react' import I18NContext from '@/context/i18n' import type { Locale } from '@/i18n' import { setLocaleOnClient } from '@/i18n' -import Loading from './base/loading' export type II18nProps = { locale: Locale @@ -15,17 +14,10 @@ const I18n: FC = ({ locale, children, }) => { - const [loading, setLoading] = useState(true) - useEffect(() => { - setLocaleOnClient(locale, false).then(() => { - setLoading(false) - }) + setLocaleOnClient(locale, false) }, [locale]) - if (loading) - return
- return (