RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in