[fix] on setup wizard language selection and load, set it as system default language
This commit is contained in:
parent
85e5d46370
commit
e4580447d0
@ -445,12 +445,11 @@ def login_as_first_user(args):
|
||||
@frappe.whitelist()
|
||||
def load_messages(language):
|
||||
frappe.clear_cache()
|
||||
lang = get_lang_dict()[language]
|
||||
frappe.local.lang = lang
|
||||
set_default_language(language)
|
||||
m = get_dict("page", "setup-wizard")
|
||||
m.update(get_dict("boot"))
|
||||
send_translations(m)
|
||||
return lang
|
||||
return frappe.local.lang
|
||||
|
||||
@frappe.whitelist()
|
||||
def load_languages():
|
||||
|
Loading…
x
Reference in New Issue
Block a user