def get_lang_js(fortype, name):
 return (u'\n\n$.extend(frappe._messages, %s)' % json.dumps(get_dict(fortype, name)))

def get_lang_js ( fortype , name ) : return ( u'\n\n$.extend(frappe._messages, %s)' % json . dumps ( get_dict ( fortype , name ) ) )
returns code snippet to be appended at the end of a js script .