File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ message as its argument and returns an instance of
176176:class: `Symfony\\ Component\\ Validator\\ Violation\\ ConstraintViolationBuilderInterface `.
177177The ``addViolation() `` method call finally adds the violation to the context.
178178
179+ .. tip ::
180+
181+ Validation error messages are automatically translated to the current application
182+ locale. If your application doesn't use translations, you can disable this behavior
183+ by calling the ``disableTranslation() `` method of ``ConstraintViolationBuilderInterface ``.
184+
185+ .. versionadded :: 6.4
186+
187+ The ``disableTranslation() `` method was introduced in Symfony 6.4.
188+
179189Using the new Validator
180190-----------------------
181191
You can’t perform that action at this time.
0 commit comments