[fix] Fix missing i18n keys when there are no mapped translations for the system's default locale

This commit is contained in:
Vinícius Moreira
2019-12-20 10:23:36 -03:00
parent 6bd27b565e
commit d2077def93
3 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
__version__ = '0.7.4'
__version__ = '0.7.5'
__app_name__ = 'bauh'
import os

View File

@@ -53,7 +53,7 @@ def get_locale_keys(key: str = None, locale_dir: str = resource.get_path('locale
break
if not locale_path:
return key, {}
return current_locale if current_locale else key, {}
with open(locale_path, 'r') as f:
locale_keys = f.readlines()