1

I'm wondering how other developers handle multilanguagal stores in Magento2. I find it rather hard, because you'll want to optimize the url-keys for seo in each language, but in doing so you lose the relation between pages.

I.e. /about-us/ would translate to /over-ons/ in Dutch. But when I open that page in any language and switch to another, I get a 404 page because it looks for the same url-key.

The same issue rises with menu's. A lot of shops have static items/pages in their menu's which each have their own url-key and label/name.

So what would you suggest is the best way to make this manageable? My first thought would be to have a .htaccess file with rewrites, rewriting about-us to over-ons and back, but that would make it unmanageable with more languages and a lot of content.

  • You use page Aboot Us or About us ? – Payal Patel Sep 23 '16 at 7:34
  • In the 'new' example it's like this; I have a Dutch store with a page "Over Ons", and an English store with a page "About Us". – Alex Timmer Sep 23 '16 at 7:37
1

Why not just make a different CMS page for each language? Seems to me the Dutch page should have other content anyway. Just make a CMS page "About us" with url-key about-us on your English site, and another CMS page "Over ons" with url-key over-ons on your Dutch site.

  • Because when you switch from another language, you'd get a 404 page. Also, this creates the problem of having multiple instances of the same menu (a seperate menu per language). This is doable, but far from ideal, and I was hoping there would be a better solution – Alex Timmer Nov 29 '16 at 15:21
  • Which get's me thinking, a possible solution would be to add a custom attribute with (another) identifier which would be the same for all different languages of the same page, and use that identifier to get the current correct URL (and maybe redirect if coming from another). – Alex Timmer Nov 29 '16 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.