forked from External/greenlight
* Fixed issue with language fallback not working * Rubocop fixes
This commit is contained in:
committed by
Jesus Federico
parent
e153528fcc
commit
7828c15286
@ -37,10 +37,6 @@ module Greenlight
|
||||
config.i18n.available_locales = [:en]
|
||||
config.i18n.default_locale = :en
|
||||
|
||||
config.i18n.available_locales.each do |locale|
|
||||
config.i18n.fallbacks[locale] = [locale, :en]
|
||||
end
|
||||
|
||||
# Check if a loadbalancer is configured.
|
||||
config.loadbalanced_configuration = ENV["LOADBALANCER_ENDPOINT"].present? && ENV["LOADBALANCER_SECRET"].present?
|
||||
|
||||
|
@ -84,10 +84,6 @@ Rails.application.configure do
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
config.i18n.fallbacks = true
|
||||
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
|
@ -10,3 +10,10 @@ locales.each do |loc|
|
||||
end
|
||||
|
||||
Rails.configuration.i18n.available_locales = configured_languages
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
Rails.configuration.i18n.fallbacks = {}
|
||||
Rails.configuration.i18n.available_locales.each do |locale|
|
||||
Rails.configuration.i18n.fallbacks[locale] = :en
|
||||
end
|
||||
|
Reference in New Issue
Block a user