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
176
176
:class: `Symfony\\ Component\\ Validator\\ Violation\\ ConstraintViolationBuilderInterface `.
177
177
The ``addViolation() `` method call finally adds the violation to the context.
178
178
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
+
179
189
Using the new Validator
180
190
-----------------------
181
191
You can’t perform that action at this time.
0 commit comments