• Resolved damianjagusiak

    (@damianjagusiak)


    Hi guys,

    Is there any chance I can set translation as the default language served to guests and logged-in users?

    Currently, we have to click on the switcher which is not something I am interested in.

    Your team via email advised me to use the script which I have attached below, however, it is not working.

    <script type="text/javascript">
    setTimeout(function(){
    if(localStorage.getItem("ChangeLanguageFirstTime") === null) {
        doGTranslate('en|es');
        localStorage.setItem("ChangeLanguageFirstTime", true);
    }
     }, 3000);
    </script>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    The code is for our other plugin – GTranslate.

    Instead of doGTranslate you can try to use doGoogleLanguageTranslator or you can use our GTranslate plugin.

    I do not recommend changing the language without user input.

    Thanks! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Set translation as default language’ is closed to new replies.