diff --git a/src/Resources/views/Invoice/Download/pdf.html.twig b/src/Resources/views/Invoice/Download/pdf.html.twig index 34052e1a..87be0b37 100644 --- a/src/Resources/views/Invoice/Download/pdf.html.twig +++ b/src/Resources/views/Invoice/Download/pdf.html.twig @@ -93,12 +93,12 @@ - {{ 'sylius_invoicing_plugin.ui.payment.paid'|trans }}: + {{ 'sylius_invoicing_plugin.ui.payment.paid'|trans([], 'messages', invoice.localeCode) }}: {% if invoice.paymentState() is constant('Sylius\\InvoicingPlugin\\Entity\\InvoiceInterface::PAYMENT_STATE_COMPLETED') %} - {{ 'sylius_invoicing_plugin.ui.payment.yes'|trans }} + {{ 'sylius_invoicing_plugin.ui.payment.yes'|trans([], 'messages', invoice.localeCode) }} {% else %} - {{ 'sylius_invoicing_plugin.ui.payment.no'|trans }} + {{ 'sylius_invoicing_plugin.ui.payment.no'|trans([], 'messages', invoice.localeCode) }} {% endif %}