Skip to content

Instantly share code, notes, and snippets.

@cvega93
Created March 7, 2019 02:54
Show Gist options
  • Save cvega93/112a8d892d1fe8abaf24801ebbd017e9 to your computer and use it in GitHub Desktop.
Save cvega93/112a8d892d1fe8abaf24801ebbd017e9 to your computer and use it in GitHub Desktop.
Translate Leadpages countdown to any language
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment