From e4f30166c2908c3e93327f3661db53c5a93241ca Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Mon, 26 Dec 2022 21:32:10 +0100 Subject: [PATCH] [Translation] Translatable parameters --- translation.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translation.rst b/translation.rst index 366c64c8517..de6bdd12b84 100644 --- a/translation.rst +++ b/translation.rst @@ -345,6 +345,10 @@ Templates are now much simpler because you can pass translatable objects to the

{{ message|trans }}

{{ status|trans }}

+.. tip:: + + The translation parameters can also be a :class:`Symfony\\Component\\Translation\\TranslatableMessage`. + .. tip:: There's also a :ref:`function called t() `,