mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
commit
808d847aa3
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…
Add table
Reference in a new issue