diff --git a/lib/sidekiq/web_helpers.rb b/lib/sidekiq/web_helpers.rb index 50de1424..60e72ebb 100644 --- a/lib/sidekiq/web_helpers.rb +++ b/lib/sidekiq/web_helpers.rb @@ -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