HOT-FIX: Issue with changes with the language file name (#466)

* HOT-FIX: Issue with changes with the language file name

* Rubocop!
This commit is contained in:
Jesus Federico
2019-04-16 17:08:17 -04:00
committed by GitHub
parent 5ff41d0590
commit c8a799bce8
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class ApplicationController < ActionController::Base
def update_locale(user)
I18n.locale = if user && user.language != 'default'
user.language
user.language.tr('-', '_')
else
http_accept_language.language_region_compatible_from(I18n.available_locales)
end