X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9e2132b83dbf479c5ee2ef176b74d7a3c1082da0..cbd687d0b1bf5232a04fba8b861ff9c53b37a2cb:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f07cacbd6..e57638767 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -247,7 +247,7 @@ class ApplicationController < ActionController::Base end end - I18n.locale = request.compatible_language_from(I18n.available_locales) + I18n.locale = request.compatible_language_from(I18n.available_locales) || I18n.default_locale response.headers['Content-Language'] = I18n.locale.to_s end