From 762db812526829772ca52686772561e41dc8be85 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sun, 28 Dec 2025 11:53:58 +0800 Subject: [PATCH] fix: lang fix --- index.html | 2 +- src/App.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 6e06e01..42eed15 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/App.tsx b/src/App.tsx index 15562c6..50e04b7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -43,6 +43,10 @@ function App() { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // 仅用于首屏同步 i18n 语言 + useEffect(() => { + document.documentElement.lang = language; + }, [language]); + useEffect(() => { const timer = setTimeout(() => { setSplashReadyToFade(true);