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

6,470 total downloads 2,821 for this version
Owners

Ebc95603a264f87d8cd670d8976ef4f23d64db8eaf5fce87590161882077adc7

Gemfile
gem 'locale_detector', '~> 0.3.1'
Versions
  1. 0.3.1 August 16, 2011 (7.5 KB)
  2. 0.3.0 August 16, 2011 (7.5 KB)
  3. 0.2.0 August 10, 2011 (7 KB)
  4. 0.0.1 August 10, 2011 (6.5 KB)
  5. 0.1.0 August 8, 2011 (6.5 KB)