Automatic Translations
-
I would like to translate a website into Polish, but when I open the website, the customer support provides a script that I pasted, which worked only when I typed in the homepage URL. However, when I reload the page or move to the next page, the script stops working, and it also does not work if I enter a different page URL. How can I make it work using the free version of gt translate? <script> if (typeof(Storage) !== "undefined") { if (localStorage.getItem("ChangeLanguageFirstTime") === null) { setTimeout(function() { const element = document.querySelector('a[data-gt-lang="es"]'); if (element) { element.click(); localStorage.setItem("ChangeLanguageFirstTime", true); } else { console.error('Element not found!'); } }, 3000); } } else { console.error('localStorage not supported in this browser!'); } </script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Automatic Translations’ is closed to new replies.