We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1b7f9 commit 24b9aebCopy full SHA for 24b9aeb
translation.rst
@@ -316,7 +316,7 @@ all the information needed to fully translate its contents when needed::
316
$message = new Translatable('Symfony is great!');
317
// the optional second argument defines the translation parameters and
318
// the optional third argument is the translation domain
319
- $status = new Translatable('order.status', ['order' => $order], 'store');
+ $status = new Translatable('order.status', ['%status%' => $order->getStatus()], 'store');
320
321
Templates are now much simpler because you can pass translatable objects to the
322
``trans`` filter:
0 commit comments