Skip to content

Commit 44e489b

Browse files
committed
[Validation] Add the disable_translation option
1 parent 70f2067 commit 44e489b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

reference/configuration/framework.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,21 @@ 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+
Set this option to ``true`` to not translate any validation error messages.
3671+
This is useful to avoid "missing translation" errors in applications that only
3672+
use a single language.
3673+
3674+
.. versionadded:: 7.3
3675+
3676+
The ``disable_translation`` option was introduced in Symfony 7.3.
3677+
36633678
.. _reference-validation-email_validation_mode:
36643679

36653680
email_validation_mode

0 commit comments

Comments
 (0)