Search code examples
ruby-on-railsruby-on-rails-3internationalizationi18n-gemrails-i18n

Does Rails engines support i18n


What I am trying to do is have a translation file in my engine. I have placed files in

config

 \locales

     \fr.yml

Now I am writing translation for string hello

fr: "Hello":"Bonjour" but I am getting translation error. When I use same line in my application translate file it works.

I just want to know whether translation files in engines work or not? If yes can you tell the error I am doing.

Thanks


Solution

  • finally i found it,use gem i18n in the engine.

    Thanks