Not updating translations when the default locale is different from 'en'

This commit is contained in:
Vinicius Moreira
2019-10-01 12:29:57 -03:00
parent f5d4e865b2
commit dac2e91528
4 changed files with 7 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ def load_managers(locale: str, context: ApplicationContext, config: Configuratio
locale_path = '{}/resources/locale'.format(f.path)
if os.path.exists(locale_path):
context.i18n.update(util.get_locale_keys(locale, locale_path))
context.i18n.update(util.get_locale_keys(locale, locale_path)[1])
man = manager_class(context=context)