Gem to automatically set I18n.locale based on user's browser language
A while ago I’ve created a locale_detector Ruby gem to automatically set I18n.locale based on the language of the web browser that the user is using. It comes very handy when you want to support multiple languages in your web application as it takes care of the language switching (i.e. now you don’t need to put the language switcher on every page).
Post a comment