mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
![]() * Add test case for sv locale * Use Rack::Utils to parse locale header * Take "q" value into account * Make '*' match the default locale. * Add test for available_locales * Correct test case sv -> en * Add missing test cases for Safari requests * Add missing require needed to run a single test file * Reimplement WebHelpers#locale to handle regions in header Implementation inspired by: https://github.com/iain/http_accept_language/blob/master/lib/http_accept_language/parser.rb Also see: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 * Add docs and references * Add failing test cases for pt-br, pt-pt, pt (examples taken from Chrome & Safari) * Add more test cases for Mac + Chrome + UK English + US English * Make test cases for 'pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4' and 'pt-pt' pass * Make special case 'ru,en' work (equal qvalues) |
||
---|---|---|
.. | ||
generators/sidekiq | ||
sidekiq | ||
sidekiq.rb |