Hello,
I want to change the language of my website from EN to DE without using the dropdown menu but with a command.
The ideal solution would be with a parameter in the URL, for example:
http://www.mysite.com?lang=de" rel="nofollow" target="_blank
I already contacted the support and they suggested me to add the following javascript code in the header to change the language via javascript:
<script type="text/javascript">
if (localStorage.getItem("ChangeLanguageFirstTime") === null) {
doGTranslate('en|de');
localStorage.setItem("ChangeLanguageFirstTime", true);
}
</script>
I tried it but it does not work.
Is there any other solution?
Thanks in advance