Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Auto-detect the user's language or set a default language. #1713

Open
PasserDreamer opened this issue Apr 24, 2024 · 1 comment
Open

Comments

@PasserDreamer
Copy link

Is your feature request related to a problem? Please describe.
When accessing the WebUI for the first time or from another device, the language is set to English, and it remains unchanged even after login, even if the language setting was previously altered during an earlier session.

Describe the solution you'd like
Allow the WebUI to detect the user's browser language and automatically change the locale.
Add an environment variable WEBUI_LANGUAGE to set a default language.

@justinh-rahb
Copy link
Collaborator

Edit backend/config.json or use this command for Docker install:

docker exec -it open-webui sed -i 's/"en-US"/"<locale>"/g' /app/backend/data/config.json

@tjbck tjbck changed the title Auto-detect the user's language or set a default language. feat: Auto-detect the user's language or set a default language. Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants