@frappe.whitelist()
def load_messages(language):
 frappe.clear_cache()
 set_default_language(get_language_code(language))
 m = get_dict(u'page', u'setup-wizard')
 for path in frappe.get_hooks(u'setup_wizard_requires'):
  js_file_path = os.path.abspath(frappe.get_site_path(u'..', *path.strip(u'/').split(u'/')))
  m.update(get_dict(u'jsfile', js_file_path))
 m.update(get_dict(u'boot'))
 send_translations(m)
 return frappe.local.lang

@ frappe . whitelist ( ) def load_messages ( language ) : frappe . clear_cache ( ) set_default_language ( get_language_code ( language ) ) m = get_dict ( u'page' , u'setup-wizard' ) for path in frappe . get_hooks ( u'setup_wizard_requires' ) : js_file_path = os . path . abspath ( frappe . get_site_path ( u'..' , * path . strip ( u'/' ) . split ( u'/' ) ) ) m . update ( get_dict ( u'jsfile' , js_file_path ) ) m . update ( get_dict ( u'boot' ) ) send_translations ( m ) return frappe . local . lang
load translation messages for given language from all setup_wizard_requires javascript files .