Last Updated: February 25, 2016
·
607
· langalex

I18n for text with links

The it gem provides a nice way to translate long sentences with links in them without ripping apart your phrases:

<%=it "copy", login_link: login_path %>

en:
  copy: "If you are already registered, %{login_link:please sign in}!"