diff --git a/config/application.rb b/config/application.rb index 8a492f5121..55bf36ad86 100644 --- a/config/application.rb +++ b/config/application.rb @@ -66,7 +66,8 @@ module Openfoodnetwork # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] config.i18n.default_locale = ENV["LOCALE"] - + I18n.locale = config.i18n.locale = config.i18n.default_locale + # Setting this to true causes a performance regression in Rails 3.2.17 # When we're on a version with the fix below, we can set it to true # https://github.com/svenfuchs/i18n/issues/230