Skip to content

Commit d79b1b7

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Validation] Add the `disable_translation` option
2 parents 74ceb85 + 2bc60bd commit d79b1b7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

reference/configuration/framework.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,22 @@ Defines the Doctrine entities that will be introspected to add
36603660
]);
36613661
};
36623662
3663+
.. _reference-validation-disable_translation:
3664+
3665+
disable_translation
3666+
...................
3667+
3668+
**type**: ``boolean`` **default**: ``false``
3669+
3670+
Validation error messages are automatically translated to the current application
3671+
locale. Set this option to ``true`` to disable translation of validation messages.
3672+
This is useful to avoid "missing translation" errors in applications that use
3673+
only a single language.
3674+
3675+
.. versionadded:: 7.3
3676+
3677+
The ``disable_translation`` option was introduced in Symfony 7.3.
3678+
36633679
.. _reference-validation-email_validation_mode:
36643680

36653681
email_validation_mode

0 commit comments

Comments
 (0)