I tried every combination I can think of but I cannot get my app to see the localized content provided by my engine. Now the engine does just fine.
I see the same problem with Rails_admin
. Where it's i18n files are in a separate gem. The main app cannot seem to see the files. I'm sure there must be an error in how I'm specifying the I18n.load_path
, but it's got me beat.
from Ryan Bates rails cast:
I18n.load_path += Dir[Rails.root.join('config', 'locale', '*.{rb,yml}')]
And one of my hack attempts:
I18n.load_path += Dir[Rails.root.join('**','locales', '**', '*.{rb,yml}')]
And any reference from inside the app results in a translation not found.
Any clues.