We've moved discussions to Discord

How does Jumpstart define the I18n.locale

Franck PATTE

I was wondering how Jumpstart set the I18n.locale
In module SetLocale, the find_locale method is defined by:
locale_from_params || locale_from_header || locale_from_user || I18n.default_locale

I don't understand why the locale_from_header takes precedence on locale_from_user, IMHO it should be:
locale_from_params || locale_from_user || locale_from_header || I18n.default_locale
Chris Oliver
Header first because the user should be able to override their default language with browser settings.
Notifications
You’re not receiving notifications from this thread.