Localization in Rails
Everyone knows about our lovely I18n gem. It does its job well and almost everyone are happy. Everyone, except those, who need to implement an app with multilingual resources. There are not many gems out there, that will help you to add a support for several languages with no additional troubles.
Recently, I was dealing exactly with this issue and as a result of my struggling, two gems were crafted. The first one is translatable gem, which adds functional to a model, that needs to be translated. Second gem is rails-localization. This one hooks rails and adds a locale in the beginning of the url and automagically sets an I18n locale for the request.
A working example can be found here!
P.S. I am happy to hear a feedback or any ideas and yada yada.
Post a comment