Skip to content

Commit

Permalink
Update locale.py (#84)
Browse files Browse the repository at this point in the history
fix #83
  • Loading branch information
JarbasAl authored Dec 6, 2023
1 parent 5db2ab4 commit e6105d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_config/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def load_language(lang):

def setup_locale(lang=None, tz=None):
lang_code = lang or ovos_config.Configuration().get("lang", "en-us")
extra_lang_codes = ovos_config.Configuration().get("secondary_langs", [])
# Load language resources, currently en-us must also be loaded at all times
load_languages([lang_code, "en-us"])
load_languages([lang_code, "en-us"] + extra_lang_codes)
# Set the active lang to match the configured one
set_default_lang(lang_code)
# Set the default timezone to match the configured one
Expand Down

0 comments on commit e6105d4

Please sign in to comment.