From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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