rails-i18n translation missing errors in production

Ruby on Rails Add comments

Here’s the solution:

In environment.rb, put this

I18n.load_path = Dir.glob(”#{RAILS_ROOT}/locales/**/*.{rb,yml}”)
I18n.default_locale = ‘en’
I18n.reload!

This was the only place I could get the I18n.reload! command to help with this issue.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in