I have a multilingual site and would like to mount the default language (English) at root, but also make it available with the /en prefix. Is this possible ?
Thank you,
Guillermo
I have a multilingual site and would like to mount the default language (English) at root, but also make it available with the /en prefix. Is this possible ?
Thank you,
Guillermo
Doesn’t seem to be supported in the docs, but you can hack it, the ugly way: duplicate the /locales/en.yml
as something different, ie. /locales/en2.yml
and then mount_at_root: :en2
in config. But if you plan to use separate templates for different languages, this might be unpractical, unless automated in the before_build
step in config.rb
.
The other way is to try redirects. I haven’t used/tested any of these ideas (except for using before_build
for other similar purposes.