cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.1.6 language switch doesn't work right

Magento 2.1.6 language switch doesn't work right

Hello all,

 

We have Magento 2.1.6 installed, together with the "Porto" template and a second (dutch) language pack.the language in the backend(dutch) works fine.

 
Unfortunately, it works not with the language change in the store. On the home page, I can still change the language from Dutch to English Now my English main menu is visible.

 

So far so good.

 

If I select something from the page or menu in English it jumps directly to back to the Dutch page, when i am on the dutch page i can  switch back to English and it does translate to Englist that page or item then.

 

Anyone know what i can do so it starts work the right way : ;-)

 

Thnx!

Tags (1)
2 REPLIES

Re: Magento 2.1.6 language switch doesn't work right

me too. any help?

or need use other version?

Re: Magento 2.1.6 language switch doesn't work right

Hi, 

 

I found a solution that worked for me with this porto template, mabey is can help you too this is what i have doen :

 

In app/design/frontend/Smartwave/porto/Magento_Store/templates/switch/languages.phtml

 

CHANGE LINE 43 : <a href="<?php echo $_lang->getCurrentUrl(); ?>">

TO : <a href="#" data-post='<?php echo $this->getTargetStorePostData($_lang); ?>'>

 

Hope that it worked for you too!

 

succes :-)