From 4a64a4dea8c6dbb7a28cefadfd9abc27802452c6 Mon Sep 17 00:00:00 2001 From: boojack Date: Sat, 10 Dec 2022 10:42:10 +0800 Subject: [PATCH] fix: html lang attr (#718) --- web/src/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/App.tsx b/web/src/App.tsx index 4562a47df..9fe3877da 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -46,6 +46,7 @@ function App() { }, [systemStatus]); useEffect(() => { + document.documentElement.setAttribute("lang", locale); i18n.changeLanguage(locale); storage.set({ locale: locale,