From 3a2e706436fe82d5c7cffc5572362619b5c00d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:18:16 +0800 Subject: [PATCH] cherry-pick 2d9334d3 --- lightrag_webui/src/components/Root.tsx | 29 +++++++------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/lightrag_webui/src/components/Root.tsx b/lightrag_webui/src/components/Root.tsx index 6191ace8..1129e093 100644 --- a/lightrag_webui/src/components/Root.tsx +++ b/lightrag_webui/src/components/Root.tsx @@ -1,24 +1,9 @@ -import { StrictMode, useEffect, useState } from 'react' -import { initializeI18n } from '@/i18n' +import { StrictMode } from 'react' import App from '@/App' +import '@/i18n' -export const Root = () => { - const [isI18nInitialized, setIsI18nInitialized] = useState(false) - - useEffect(() => { - // Initialize i18n immediately with persisted language - initializeI18n().then(() => { - setIsI18nInitialized(true) - }) - }, []) - - if (!isI18nInitialized) { - return null // or a loading spinner - } - - return ( - - - - ) -} +export const Root = () => ( + + + +)