请帮忙,我卡住了:
我想本地化类似"请联系支持<%=mail_to'support@mail.de"%>了解更多信息"。
但是该怎么办呢?
我尝试了一些类似的东西:
<%= t('.contact_support', :mail => ______????) %>
感谢您的帮助
解决方案:
en:
emails:
contact_support: 'Please contact %{email}'
<%= t('.contact_support', :email => 'support@mail.de') %>
您可以在翻译中创建一个条目,如:
en:
emails:
contact_support: 'Please contact support@mail.de'
然后在你看来:
<%= t('emails.contact_support') %>