From 6f6566daa3a06c474f965792a5d6fa9f8c728f82 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 4 Jun 2025 15:21:19 +0200 Subject: [PATCH] [Validation] Add the `disable_translation` option --- reference/configuration/framework.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index ad2b7587e5f..e37e28f6caf 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -3660,6 +3660,22 @@ Defines the Doctrine entities that will be introspected to add ]); }; +.. _reference-validation-disable_translation: + +disable_translation +................... + +**type**: ``boolean`` **default**: ``false`` + +Validation error messages are automatically translated to the current application +locale. Set this option to ``true`` to disable translation of validation messages. +This is useful to avoid "missing translation" errors in applications that use +only a single language. + +.. versionadded:: 7.3 + + The ``disable_translation`` option was introduced in Symfony 7.3. + .. _reference-validation-email_validation_mode: email_validation_mode