Hi there,
it really depends on how the plugin multicurrency works. Is it server side or client side ?
You will need to get the language from Weglot like this :
In PHP : Weglot::Instance()->getCurrentLang();
In JS :
document.getElementsByTagName('html')[0].getAttribute('lang');
Then once you have the language, you will need to feed it to the currency plugin.
Best,
Could you help me, because i don’t have much skills. I find file weglot.php and i wrote at he end “Weglot::Instance()->getCurrentLang();” but i don’t know where i musy write document.getElementsByTagName(‘html’)[0].getAttribute(‘lang’);
plugin multi currency works local.
-
This reply was modified 8 years, 5 months ago by
ldybiec.