Skip to content

Instantly share code, notes, and snippets.

@cvega93
Created March 7, 2019 02:54
Show Gist options
  • Select an option

  • Save cvega93/5abde67ae492d9b8be8e6be50099a5a5 to your computer and use it in GitHub Desktop.

Select an option

Save cvega93/5abde67ae492d9b8be8e6be50099a5a5 to your computer and use it in GitHub Desktop.

Revisions

  1. cvega93 created this gist Mar 7, 2019.
    12 changes: 12 additions & 0 deletions topaste.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <script>
    //Paste this in After Body

    //Search labels
    const labels = document.querySelectorAll('.time-name');
    //Setup labels translated
    let translation = ['Días', 'Horas','Minutos','Segundos'];
    labels.forEach(function (label, index) {
    //Replace each label
    label.innerHTML = translation[index];
    });
    </script>