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}!"
Written by Alexander Lang
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#