Support » Plugin: Google Language Translator » for display language code

  • <script>
    var interval = setInterval(() => {
    if (document.getElementsByClassName(‘goog-te-combo’) && document.getElementsByClassName(‘goog-te-combo’).length > 0) {
    let language = document.getElementsByClassName(‘goog-te-combo’);
    let options = language[0].options;
    //if(options[1] && options[1].text === options[1].value) clearInterval(interval);
    for (i=0; i < options.length; i+=1) {options[i].text = options[i].value}
    }
    }, 100)
    </script>

  • The topic ‘for display language code’ is closed to new replies.