fix: load languages that have capital letters
This commit is contained in:
parent
90cf6bb829
commit
4203c3b13d
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ def get_translations_from_apps(lang, apps=None):
|
|||
|
||||
translations = {}
|
||||
for app in apps or frappe.get_installed_apps(_ensure_on_bench=True):
|
||||
path = frappe.get_app_path(app, "translations", lang + ".csv")
|
||||
path = os.path.join(frappe.get_app_path(app, "translations"), lang + ".csv")
|
||||
translations.update(get_translation_dict_from_file(path, lang, app) or {})
|
||||
if "-" in lang:
|
||||
parent = lang.split("-", 1)[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue