def _create_html_file_content(translations):
    """Create html string out of translation dict.

    Parameters
    ----------
    tralnslations : dict
        Dictionary of word translations.

    Returns
    -------
    str:
        html string of translation
    """
    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>')
        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>')
                content.append('</div>')
            content.append('</ol>')
            content.append('</div>')
        content.append('</div>')
    return '\n'.join(content)
