Does Rails engines support i18n
-
13-07-2021 - |
Question
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow