Originally created by @PasserDreamer on GitHub (Apr 24, 2024).
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.
Originally created by @PasserDreamer on GitHub (Apr 24, 2024).
**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.
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
@justinh-rahb commented on GitHub (Apr 24, 2024):
Edit `backend/config.json` or use this command for Docker install:
```bash
docker exec -it open-webui sed -i 's/"en-US"/"<locale>"/g' /app/backend/data/config.json
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @PasserDreamer on GitHub (Apr 24, 2024).
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_LANGUAGEto set a default language.@justinh-rahb commented on GitHub (Apr 24, 2024):
Edit
backend/config.jsonor use this command for Docker install:@tjbck commented on GitHub (May 26, 2024):
Added to our dev branch!
@saxsoares commented on GitHub (Jun 5, 2024):
Despite the "Auto-detect" user's language.... How to force a default language?
@omeryounus commented on GitHub (Oct 19, 2024):
this command didn't work --> docker exec -it open-webui sed -i 's/"en-US"/""/g' /app/backend/data/config.json
error out as...