First you will need the i18n gem, which handles the
internationalisation of text strings and objects
require 'i18n' require 'i18n/backend/fallbacks'
Now you will need to configure the I18n module so that it falls back
to the default locale, and loads the translations from the
locales directory
configure
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path, Dir[File.join(settings.root, 'locales', '*.yml')]
I18n.backend.load_translations
end