JSFiddle - React, Tailwind, and code Playground

HTML

<table>
  <tr>
    <td class="threadsType">Sticky threads</td>
    <td class="threadsType">Forum threads</td>
  </tr>
</table>

JavaScript

var threadsType = document.querySelectorAll(".threadsType");
for (var i = 0; i < threadsType.length; i++) {
  if (threadsType[i].innerText === "Sticky threads") {
    threadsType[i].innerText = threadsType[i].innerText.replace(
      "Sticky threads",
      "Zvýraznené témy"
    )
  } else if (threadsType[i].innerText === "Forum threads") {
    threadsType[i].innerText = threadsType[i].innerText.replace("Forum threads", "Témy fóra");
  }


}