mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update web_helpers.rb
fix a bug about zh-cn support.
This commit is contained in:
parent
271fa146fc
commit
58f8eb98bf
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module Sidekiq
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue