Default translate language
-
I have a site in Russian and I need it to be displayed in Ukrainian by default. I wrote to the chat, they gave me the code:
<script type="text/javascript"> setTimeout(function(){ if(localStorage.getItem("ChangeLanguageFirstTime") === null) { doGoogleLanguageTranslator('ru|uk'); localStorage.setItem("ChangeLanguageFirstTime", true); } }, 3000); </script>
This code does not work for me. I tried various positions of the code, I thought that the problem was in the theme. I tried to write in functions.php and call functions from different places too. Tried calling the function without checking “ChangeLanguageFirstTime” and without “setTimeout”. I checked the results of each test through private tabs. After a huge number of tests I gave up. Are there any alternative methods? Or maybe you can identify or suggest what the problem might be. Thank you
The page I need help with: [log in to see the link]
- The topic ‘Default translate language’ is closed to new replies.