mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Don't forget poor little freeze\!
This commit is contained in:
parent
5e1379087c
commit
a3c53211be
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module Sidekiq
|
|||
locale = 'en'.freeze
|
||||
languages = request.env['HTTP_ACCEPT_LANGUAGE'.freeze] || 'en'.freeze
|
||||
languages.downcase.split(','.freeze).each do |lang|
|
||||
next if lang == '*'
|
||||
next if lang == '*'.freeze
|
||||
lang = lang.split(';'.freeze)[0]
|
||||
break locale = lang if find_locale_files(lang).any?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue