add locale override capabilities

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-02-09 09:27:04 -05:00
parent a34d331967
commit d01fefdb30
9 changed files with 37 additions and 12 deletions
+2
View File
@@ -363,6 +363,8 @@ def temp_disable_extensions():
theme_name = modules.shared.cmd_opts.theme
else:
theme_name = f'{modules.shared.opts.theme_type.lower()}/{modules.shared.opts.gradio_theme}'
if modules.shared.cmd_opts.locale is not None:
modules.shared.opts.ui_locale = modules.shared.cmd_opts.locale
if theme_name == 'lobe':
disable_themes.remove('sd-webui-lobe-theme')