Search code examples
ruby-on-railsrubyruby-on-rails-3internationalizationrails-i18n

how to reload language files in "production"


How to reload language files in Production?

I18n.backend.reload!

This method doesn't work.

(trying to reload via url, attached to this action)


Solution

  • You can reload language files without reloading application server using:

    I18n.backend.load_translations