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
feat(embedded-chatbot): support overriding locale via URL params (#18509)
Marcelo Díazbf031af7b16b
diff --git a/web/app/components/base/chat/embedded-chatbot/hooks.tsx b/web/app/components/base/chat/embedded-chatbot/hooks.tsxindex d6a7b230e48..0f2529152c4 100644--- a/web/app/components/base/chat/embedded-chatbot/hooks.tsx+++ b/web/app/components/base/chat/embedded-chatbot/hooks.tsx@@ -80,8 +80,30 @@ export const useEmbeddedChatbot = () => {}, [])useEffect(() => {- if (appInfo?.site.default_language)- changeLanguage(appInfo.site.default_language)+ const setLanguageFromParams = async () => {+ // Check URL parameters for language override+ const urlParams = new URLSearchParams(window.location.search)+ const localeParam = urlParams.get('locale')++ // Check for encoded system variables+ const systemVariables = await getProcessedSystemVariablesFromUrlParams()+ const localeFromSysVar = systemVariables.locale++ if (localeParam) {+ // If locale parameter exists in URL, use it instead of default+ changeLanguage(localeParam)+ }+ else if (localeFromSysVar) {+ // If locale is set as a system variable, use that+ changeLanguage(localeFromSysVar)+ }+ else if (appInfo?.site.default_language) {+ // Otherwise use the default from app config+ changeLanguage(appInfo.site.default_language)+ }+ }++ setLanguageFromParams()}, [appInfo])const [conversationIdInfo, setConversationIdInfo] = useLocalStorageState<Record<string, Record<string, string>>>(CONVERSATION_ID_INFO, {