Send a Content-Language header with any localised pages.
This commit is contained in:
parent
b7aa25947e
commit
6bc03625a1
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
I18n.locale = request.compatible_language_from(I18n.available_locales)
|
||||
|
||||
response.headers['Content-Language'] = I18n.locale
|
||||
end
|
||||
|
||||
def api_call_handle_error
|
||||
|
|
Loading…
Add table
Reference in a new issue