Remove unnecessary translateToHtml function.