parameters: (path, data)
docstring: Writes a JSON translation file with canonical formatting.
docstring_summary: Writes a JSON translation file with canonical formatting.
docstring_tokens: Writes a JSON translation file with canonical formatting .
function: def write_translation_file(path, data):
      """Writes a JSON translation file with canonical formatting."""
      with open(path, 'w', encoding='utf-8') as fl:
          json.dump(data, fl,
                    ensure_ascii=False,
                    indent=2,
                    separators=(',',': '),
                    sort_keys=True)
          fl.write('\n')
function_tokens: def write_translation_file ( path , data ) : with open ( path , 'w' , encoding = 'utf-8' ) as fl : json . dump ( data , fl , ensure_ascii = False , indent = 2 , separators = ( ',' , ': ' ) , sort_keys = True ) fl . write ( '\n' )