From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/i18n.tsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/components/i18n.tsx b/app/components/i18n.tsx
index f04f8d6..7fe1df2 100644
--- a/app/components/i18n.tsx
+++ b/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 (

--
Gitblit v1.8.0