Actually set the locale from the users browser request, rather than just parsing it.
This commit is contained in:
parent
7cda38bb25
commit
4ee48d2ad9
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_locale
|
def set_locale
|
||||||
request.compatible_language_from(I18n.available_locales)
|
I18n.locale = request.compatible_language_from(I18n.available_locales)
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_call_handle_error
|
def api_call_handle_error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue