app/components/i18n.tsx
@@ -2,6 +2,7 @@ import type { FC } from 'react' import React, { useEffect } from 'react' import { changeLanguage } from '@/i18n/i18next-config' import I18NContext from '@/context/i18n' import type { Locale } from '@/i18n' import { setLocaleOnClient } from '@/i18n' @@ -15,7 +16,7 @@ children, }) => { useEffect(() => { setLocaleOnClient(locale, false) changeLanguage(locale) }, [locale]) return (