You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
440 B
17 lines
440 B
9 months ago
|
unless Rails.env.production?
|
||
|
|
||
|
require "i18n/backend/active_record"
|
||
|
|
||
|
Translation = I18n::Backend::ActiveRecord::Translation
|
||
|
|
||
|
if Translation.table_exists?
|
||
|
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::ActiveRecord.new, I18n.backend)
|
||
|
end
|
||
|
|
||
|
I18n::Backend::ActiveRecord.configure do |config|
|
||
|
# config.cache_translations = true # defaults to false
|
||
|
# config.cleanup_with_destroy = true # defaults to false
|
||
|
end
|
||
|
|
||
|
end
|