• Resolved rixator

    (@rixator)


    Hi,

    Is it possible to use ”Javascript callback – on after load” in the settings to auto translate as soon as the plugin has loaded?

    I tried to use this code I found in this thread but I’m guessing I’m doing something wrong:

    window.onload = function(){
    (function () {
    PrisnaGWT.translate(‘[language-code(e.g. ‘en’)]’);
    }());
    }
Viewing 1 replies (of 1 total)
  • Plugin Author Prisna

    (@prisna)

    Greetings,

    it’s possible, but you can’t use window.onload because the translator takes a few milliseconds to initialize.

    If you don’t know how to check if the translator is initialized, then please send a link where the translator can be seen, and then we’ll send you the code.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Auto translation’ is closed to new replies.