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

	frappe.local.response["__messages"].update(translation_dict)
Append translated dict in `frappe.local.response`
dataset/ETHPy150Open frappe/frappe/frappe/translate.py/send_translations