Some fixes & improvements to Rack::Locale #60

Merged
merged 7 commits into from Dec 10, 2012

Projects

None yet

2 participants

@jamesarosen
  • add specs!
  • sort the values in Accept-Languages by their qvalue
  • reset I18n.locale to its previous setting even if the underlying app throws an exception
  • return the whole locale string (e.g. en-gb), not just the first section
  • extract some logic to a helper method
@rkh rkh merged commit 7b0b109 into rack:master Dec 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment