mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Turn off enforce_available_locales, working around performance regression https://github.com/svenfuchs/i18n/issues/230
This commit is contained in:
@@ -63,7 +63,10 @@ module Openfoodnetwork
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = 'en'
|
||||
|
||||
I18n.config.enforce_available_locales = true
|
||||
# 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
|
||||
I18n.config.enforce_available_locales = false
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
Reference in New Issue
Block a user