In rails7, I have a form, but I want the error messages to be displayed in another language, I can change the ones in the validations in the model e.g. user.rb, but the language of the message that appears at the top, for example :
"The form contains 8 errors" I couldn't find a way to change it. How can I do that?
_form.html.erbbut that is<h2><%= pluralize(users.errors.count, "error") %> prohibited this user from being saved:</h2>. The Rails form helpers do not add any kind of error messages on their own so whatever you're seeing here is not part of the framework.