From a5e24ff6d30130a8a9e0e654ab02e8f56227f89e Mon Sep 17 00:00:00 2001 From: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:47:24 +0800 Subject: [PATCH] fix: update language change handling in I18n component (#12596) ok --- web/app/components/i18n.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/i18n.tsx b/web/app/components/i18n.tsx index 7fe1df23e0..f04f8d6cbe 100644 --- a/web/app/components/i18n.tsx +++ b/web/app/components/i18n.tsx @@ -2,7 +2,6 @@ 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' @@ -16,7 +15,7 @@ const I18n: FC = ({ children, }) => { useEffect(() => { - changeLanguage(locale) + setLocaleOnClient(locale, false) }, [locale]) return (