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 = () => ( + + + +)