code: def _write_html_file(word, translations, data_dir, native=False):
      
      content_str = _create_html_file_content(translations)
      html_string = HTML_TEMPLATE.replace("{% word %}", word)
      html_string = html_string.replace("{% content %}", content_str)
  
      trans_dir = "translations"
      if native:
          trans_dir += "_native"
      translations_dir = data_dir.joinpath(trans_dir)
      fname = translations_dir.joinpath("{word}.html".format(word=word))
      save_file(fname, html_string, mk_parents=True)
docs: Create html file of word translations.
  
      Parameters
      ----------
      word : str
          Word that was translated.
      tralnslations : dict
          Dictionary of word translations.
      data_dir : pathlib.Path
          Location where html files are saved.