Skip to content

Commit f8b48c9

Browse files
committed
minor #17622 [Translation] Translatable parameters (alamirault)
This PR was merged into the 6.1 branch. Discussion ---------- [Translation] Translatable parameters Complete #16299 IMO an example is not needed, WDYT ? Commits ------- e4f3016 [Translation] Translatable parameters
2 parents e41c4da + e4f3016 commit f8b48c9

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)