Skip to content

Commit e4f3016

Browse files
committed
[Translation] Translatable parameters
1 parent c6556a3 commit e4f3016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

translation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ Templates are now much simpler because you can pass translatable objects to the
345345
<h1>{{ message|trans }}</h1>
346346
<p>{{ status|trans }}</p>
347347

348+
.. tip::
349+
350+
The translation parameters can also be a :class:`Symfony\\Component\\Translation\\TranslatableMessage`.
351+
348352
.. tip::
349353

350354
There's also a :ref:`function called t() <reference-twig-function-t>`,

0 commit comments

Comments
 (0)