• Hi there,

    I want to change the language programatically in a page, more exactly I want to tie the currency with the language, if the language is EN, show $USD, if anything else show €EUR and vice-versa, I want to change the currency based on language (that has been answered in a different topic).

    So is this possible (free/paid)?


    p.s. I was directed here by your chat.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I think you can trigger a click event on the appropriate language link:

    document.querySelector('a[data-gt-lang="it"]').click();

    Thanks! ??

    Hello,

    is there a way to do it via the URL? For example mydomain/page?language=it

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.