Log locale selection
This commit is contained in:
parent
a3c83f8623
commit
101ee6ade2
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
I18n.locale = request.compatible_language_from(I18n.available_locales) || I18n.default_locale
|
||||
|
||||
logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}"
|
||||
|
||||
response.headers['Content-Language'] = I18n.locale.to_s
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue