Change the locale on the front page
Created 7 years ago by cchinopoulos

How to change the locale manually on the front page in order to see the site in other languages?

ryanthompson  —  7 years ago Best Answer

There are a couple ways you can do this - check out the control panel in the bottom - the dropdown (note the URL it loads). You can do that:

yoursite.com/?_locale=fr

This will reload the main path but set a session to that locale.

You can also use URI hints:

yoursite.com/fr/example // prefixes will remain in calculated links

And lastly you can use subdomain hints:

fr.yoursite.com/example

Hope this helps!

cchinopoulos  —  7 years ago

Never mind i found it!

cchinopoulos  —  7 years ago

THX

ryanthompson  —  7 years ago

Mark as answered if you would helps others find information faster 😊

cchinopoulos  —  7 years ago

This applies to subdomains also like: sudomain.domain.com/fr/pagename ?

ryanthompson  —  7 years ago

Indeed @cchinopoulos should work just the same

cchinopoulos  —  7 years ago

I'm doing something wrong here...

I've managed to change the locale by using the '?_locale=el' http://pyro.chinopoulos.com/demo?_locale=el http://pyro.chinopoulos.com/demo?_locale=en

...but URI hint is not working http://pyro.chinopoulos.com/el/demo http://pyro.chinopoulos.com/en/demo

I use pyro 3.1 clean installation

cchinopoulos  —  7 years ago

BTW my php version is 7.0.12