code: def _create_html_file_content(translations):
      
      content = []
      for i1, t in enumerate(translations):
          if i1 > 0:
              content.append("<br>")
          content.append('<div class="translation">')
          content.append('<div class="word">')
          for w in t.word:
              content.append("<h2>{word}</h2>".format(word=w))
          content.append("</div>")  # end `word`
          for i2, t2 in enumerate(t.parts_of_speech):
              if i2 > 0:
                  content.append("<br>")
              content.append('<div class="part-of-speech">')
              if t2.part is not None:
                  content.append('<p class="part-name">[{part}]</p>'.format(part=t2.part))
              content.append("<ol>")
              for m in t2.meanings:
                  content.append('<div class="meaning">')
                  mng = ["<strong><li>"]
                  for i3, mn in enumerate(m.meaning):
                      if i3 > 0:
                          mng.append(", ")
                      mng.append("<span>{meaning}</span>".format(meaning=mn))
                  mng.append("</li></strong>")
                  content.append("".join(mng))
                  content.append('<div class="examples">')
                  for e in m.examples:
                      exmpl = "<p><span>{ex}</span>".format(ex=e[0])
                      if e[1]:
                          exmpl += "<br><span>{tr}</span>".format(tr=e[1])
                      exmpl += "</p>"
                      content.append(exmpl)
                  content.append("</div>")  # end `examples`
                  content.append("</div>")  # end `meaning`
              content.append("</ol>")
              content.append("</div>")  # end `part-of-speech`
          content.append("</div>")  # end `translation`
      return "\n".join(content)
docs: Create html string out of translation dict.
  
      Parameters
      ----------
      tralnslations : dict
          Dictionary of word translations.
  
      Returns
      -------
      str:
          html string of translation