Magento2 Store View – Translate Pages by Store View

localisationmagento2pagestore-view

In Magento admin, I tried to create new page for different language (in CONTENT > PAGES). However, when I enter the same URL Key (i.e. home) and save, it prompt out error.

URL key for specified store already exists.

I expected all three pages in different store views should belong to the same URL, anyone got any idea?

Best Answer

We can achieve this by creating the different CMS pages which assign to the different Store Views.

For example: we have three store views, we can create three different CMS pages with the same url key (for example, my-contact-page). Remember that each page must be assigned to the different Store View.

enter image description here

Especially for Home page, we can set the CMS home page for each store view in STORES> Configuration > General Web > Default Pages:

enter image description here

Related Topic