diff --git a/backend/data/config.json b/backend/data/config.json index 7d15c9e69..91259c3f1 100644 --- a/backend/data/config.json +++ b/backend/data/config.json @@ -1,7 +1,7 @@ { "version": 0, "ui": { - "locale": "en-US", + "default_locale": "en-US", "prompt_suggestions": [ { "title": [ diff --git a/backend/main.py b/backend/main.py index 6a5206213..b118c673a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -167,7 +167,7 @@ async def get_app_config(): "status": True, "name": WEBUI_NAME, "version": VERSION, - "locale": CONFIG_DATA["ui"]["locale"], + "default_locale": CONFIG_DATA["ui"]["default_locale"], "images": images_app.state.ENABLED, "default_models": webui_app.state.DEFAULT_MODELS, "default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS, diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3334e0d2e..4ab2a62e4 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -25,8 +25,8 @@ if (backendConfig) { // Save Backend Status to Store await config.set(backendConfig); - if ($config.locale) { - initI18n($config.locale); + if ($config.default_locale) { + initI18n($config.default_locale); } else { initI18n(); }