我正在尝试翻译登录表单的验证消息,但可能我做错了。这是我到目前为止所做的。
NS/AppBundle/Resources/translations/validations.br.yml
该文件的内容是
Bad credentials.:translated message
然后在树枝文件中
<div class="error">{{ error.message|trans({},'messages') }}</div
该项目还具有一个文件NS/AppBundle/Resources/translations/messages.br.yml
,该文件中的所有内容均按预期进行了翻译。
已经尝试使用清除缓存。
所以我做错了什么?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句