maglevhq / maglev-core

Ruby on Rails website builder
https://www.maglev.dev
MIT License
273 stars 47 forks source link

Switching language while preserving site location #74

Closed sedubois closed 7 months ago

sedubois commented 9 months ago

If, say, a home page has an English and a French version, one could provide a language switcher as follows:

However, when switching language from other pages (e.g. Careers), the viewer will then be redirected to the home page instead of being shown the Careers page in the alternate language. How to ensure each page's language switcher links to its alternative language version(s) instead of linking back home?

did commented 7 months ago

@sedubois I wrote some doc about it here -> https://docs.maglev.dev/guides/setup-multiple-languages#locale-switcher