discourse_narrative_bot.new_user_narrative.hello.message
doesn’t accept
%{new_user_tips}
is there a reason for it?
discourse_narrative_bot.new_user_narrative.hello.message
doesn’t accept
%{new_user_tips}
is there a reason for it?
Why should it? You can’t use arbitrary interpolation keys within translations. Only the ones used in the English text and this particular text doesn’t use any interpolation.
not sure what you mean by “arbitrary”.
%{new_user_tips} links to system_messages.usage_tips.text_body_template and can be used in:
system_messages.welcome_user.text_body_template
system_messages.welcome_invite.text_body_template
我也对模板中有效的插值键这一主题感到困惑。我们之前自定义了诸如 user_notifications.reply_by_email 之类的模板,例如显示以下内容:
第二个项目的链接为:
%{base_url}/new-message?username=%{username}&title=您的帖子 %{topic_title_url_encoded}&body=关于您在 %{base_url}%{url} 中的帖子
该链接已使用一段时间并运行完美。今天我们需要修改 user_notifications.reply_by_email 中的文本,但在保存时收到错误:
以下插值键无效:"username, topic_title_url_encoded"
为何现在出现此限制?我们该如何解决?