Skip to content

Commit

Permalink
Merge pull request sidekiq#1962 from wndfly/master
Browse files Browse the repository at this point in the history
Update web_helpers.rb
  • Loading branch information
seuros committed Sep 19, 2014
2 parents 271fa14 + 58f8eb9 commit 808d847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/web_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def filtering(*)
end

def locale
lang = (request.env["HTTP_ACCEPT_LANGUAGE"] || 'en')[0,2]
lang = (request.env["HTTP_ACCEPT_LANGUAGE"] || 'en').split(',')[0].downcase
strings[lang] ? lang : 'en'
end

Expand Down

0 comments on commit 808d847

Please sign in to comment.