How to avoid adding the default Locale in generated URLs?

前端 未结 4 619
伪装坚强ぢ
伪装坚强ぢ 2020-12-25 14:36

If you follow the I18N Rails Guide, all generated links contain the locale parameter (localhost/en/about, localhost/fr/about). This is because we use the method defaul

4条回答
  •  春和景丽
    2020-12-25 15:15

    I know it's not exactly your question but...

    I prefer the other way for internationalisations: Setting the Locale from the Domain Name

    Ex: mysite.com/about, mysite.fr/about

    For me it's the best way, but you need to buy all domains.

提交回复
热议问题