mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22866] issue: Hardcoded lang="en" in HTML header triggers unwanted browser translation popups and breaks localization
#58497
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dotmobo on GitHub (Mar 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22866
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
debian
Browser (if applicable)
firefox esr
Confirmation
README.md.Expected Behavior
The
<html>tag'slangattribute should dynamically update to match the user's selected language (e.g.,lang="fr"when French is selected). This ensures that browsers recognize the correct language, preventing automatic translation popups and ensuring the interface remains in its native, localized state.Actual Behavior
The HTML header hardcodes
lang="en", causing the browser to treat the entire page as English regardless of the selected interface language. This triggers intrusive browser translation popups for non-English users. If the user accidentally clicks "Translate," the browser attempts to translate text that is already localized, resulting in broken, double-translated, or nonsensical interface text.Steps to Reproduce
<html>tag still containslang="en"instead oflang="fr".Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Mar 20, 2026):
Addressed in dev.