def send_translations(translation_dict):
 if (u'__messages' not in frappe.local.response):
  frappe.local.response[u'__messages'] = {}
 frappe.local.response[u'__messages'].update(translation_dict)

def send_translations ( translation_dict ) : if ( u'__messages' not in frappe . local . response ) : frappe . local . response [ u'__messages' ] = { } frappe . local . response [ u'__messages' ] . update ( translation_dict )
append translated dict in frappe .