You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to reproduce locally on OS-X running Ruby 2.2.3, Rails 4.2.1, i18n 0.7.0, http_accept_language 2.0.5 and couldn’t
On my OpenStack-based deployment environment where Boarding is running under Dokku, I can reproduce it everytime.
Tried:
1. To set default locale explicitly in config/application.rb:
config.i18n.default_locale=:en
This seemed to help but I was randomly still getting other localisations (oddly, it seemed like I was getting some of the ones I’d explicitly visited earlier but with no discernible pattern between requests)
2. As a workaround, to disable localisation:
This isn’t an issue for us at the moment as the app is initially only available in English.
In /controllers/application_controller.rb:
classApplicationController < ActionController::Base# include HttpAcceptLanguage::AutoLocale
When
Accept-Language: sv-SE
header is set, the localisation appears in Chinese:Check if this is a greater issue with RoR AutoLocale implementation and fix at the right place.
Possible culprit:
In application_controller.rb:
The text was updated successfully, but these errors were encountered: