how to use rails i18n fallback features

I set in config/application.rb usually

    config.i18n.fallbacks =[:de, :fr, :en]

So you can declare the order of the fallback.

But keep attention in some environments/*.rb the configuration is overwritten.


When a :default option is given, its value will be returned if the translation is missing:

I18n.t :missing, :default => 'Not here'
# => 'Not here'

More info here


Have you enabled fallbacks for your backend? Assuming it's Simple(based on yml in example):

put this in an initializer:

require "i18n/backend/fallbacks" 
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)

https://github.com/svenfuchs/i18n/wiki/Fallbacks