RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in