forked from External/greenlight
* <Added ui for language setting and migration> * <Option to choose languages added> * <Fixed code style> * <Added Rspec tests> * <sync db> * <Sync db> * <Generalized language settings> * <Fixed flash message> * Fixed las issue with i18n fallback * <Modified fallback config> * <Fixed code style>
This commit is contained in:
@ -37,6 +37,10 @@ module Greenlight
|
||||
config.i18n.available_locales = %w(en pt-br es ar fr de el)
|
||||
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?
|
||||
|
||||
|
Reference in New Issue
Block a user