What is it?

I18n is baked right into Rails, and it’s great. But if you want to place markup or links inside your translated copies, things get a little messy. You need to specify the label of your links separately from the rest of the copy. Writing HTML in your translations is even worse.

As you see above, unless the interpolation name is link or starts with _link or ends with _link, you need to call It.link to create a link. The advantage of It.link: You may specify options like you would with link_to:

The %s will be replaced with the label, in the example with Rails. You could provide any other string containing %s. The default is just %s, so it will return only the label itself.

Abandoned & outdated?

Everybody hates old and outdated gems, which don’t work on with the latest Rails or Ruby version or haven’t been updated for ages. Sadly, rubygems is full of such gems. If you improved it send me a pull request. If I have not time to support the lib anymore, I will happily hand the project over to a new maintainer.

Broken English?

I’m not a native speaker, so you’ll probably find some spelling errors or clumsy sentences above. If you do, please send me a message.