• Resolved faisal95bd

    (@faisal95bd)


    Hello,

    Currently, I’m using GTranslate on my site. I’ve added four languages (Arabic, English, French, and Spanish).
    But when the site loads it’s showing the contents in English. I want to show all the contents in Arabic by default when the site loads. Then the customer can select his preferred language from the menu if he wants)

    • This topic was modified 3 years ago by faisal95bd.

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

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

    (@edo888)

    Hi,

    I really do not recommend you doing that to avoid unexpected headaches.

    If you still want to do it, you can use the following javascript code after page load:

    if(localStorage.getItem("ChangeLanguageFirstTime") === null) {
        doGTranslate('en|ar');
        localStorage.setItem("ChangeLanguageFirstTime", true);
    }

    Thanks! ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to change the default language to Arabic’ is closed to new replies.