Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: webapp language (#2378)
zxhlyh65bec16fb333
diff --git a/web/app/components/base/chat/chat-with-history/hooks.tsx b/web/app/components/base/chat/chat-with-history/hooks.tsxindex 3d30c674c72..2258740f87f 100644--- a/web/app/components/base/chat/chat-with-history/hooks.tsx+++ b/web/app/components/base/chat/chat-with-history/hooks.tsx@@ -36,6 +36,7 @@ import type {} from '@/models/share'import { addFileInfos, sortAgentSorts } from '@/app/components/tools/utils'import { useToastContext } from '@/app/components/base/toast'+import { changeLanguage } from '@/i18n/i18next-config'export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {const isInstalledApp = useMemo(() => !!installedAppInfo, [installedAppInfo])@@ -55,6 +56,11 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {}, [isInstalledApp, installedAppInfo, appInfo])const appId = useMemo(() => appData?.app_id, [appData])+ useEffect(() => {+ if (appData?.site.default_language)+ changeLanguage(appData.site.default_language)+ }, [appData])+const [conversationIdInfo, setConversationIdInfo] = useLocalStorageState<Record<string, string>>(CONVERSATION_ID_INFO, {defaultValue: {},})