سؤال

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

هل كانت مفيدة؟

المحلول

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

Thanks

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top