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 @@ -180,6 +180,16 @@ message as its argument and returns an instance of
180
180
:class: `Symfony\\ Component\\ Validator\\ Violation\\ ConstraintViolationBuilderInterface `.
181
181
The ``addViolation() `` method call finally adds the violation to the context.
182
182
183
+ .. tip ::
184
+
185
+ Validation error messages are automatically translated to the current application
186
+ locale. If your application doesn't use translations, you can disable this behavior
187
+ by calling the ``disableTranslation() `` method of ``ConstraintViolationBuilderInterface ``.
188
+
189
+ .. versionadded :: 6.4
190
+
191
+ The ``disableTranslation() `` method was introduced in Symfony 6.4.
192
+
183
193
Using the new Validator
184
194
-----------------------
185
195
You can’t perform that action at this time.
0 commit comments