X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2bf56c7be32bd05d97aa08298c649478cf82d4af..37749e07e16363491de48cb4f26aff05c3624b80:/app/controllers/application.rb diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 97332ba01..3d16ffa69 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base end def set_locale - request.compatible_language_from(I18n.available_locales) + I18n.locale = request.compatible_language_from(I18n.available_locales) end def api_call_handle_error