RubyGems.org

Parses HTTP_ACCEPT_LANGUAGE http header and sets the I18n.locale based on that, if it's missing it uses toplevel regional domain suffix or falls back to I18n.default_locale

installgem install locale_detector
Authors

Paweł Gościcki

4,526 total downloads 1,970 for this version
Owners

Ebc95603a264f87d8cd670d8976ef4f23d64db8eaf5fce87590161882077adc7

Gemfile
gem "locale_detector", "~> 0.3.1"
Versions
  1. 0.3.1 August 16, 2011
  2. 0.3.0 August 16, 2011
  3. 0.2.0 August 10, 2011
  4. 0.1.0 August 8, 2011
  5. 0.0.1 August 10, 2011