Downgrade

This commit is contained in:
Vinícius Moreira
2019-06-25 18:25:04 -03:00
committed by GitHub
parent 7d106c149b
commit f9f47d1429
15 changed files with 349 additions and 32 deletions

View File

@@ -4,11 +4,15 @@ from fpakman.core import resource
import glob
def get_locale_keys():
def get_locale_keys(key: str = None):
current_locale = locale.getdefaultlocale()
locale_path = None
if key is None:
current_locale = locale.getdefaultlocale()
else:
current_locale = [key]
if current_locale:
current_locale = current_locale[0]