You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example from my debug, where credit memo is in de, but my admin user locale is en. I've replaced some |trans uses with creditMemo.localeCode, so you can see the mismatch.
The text was updated successfully, but these errors were encountered:
diimpp
changed the title
[Bug] CreditMemo Pdf translation uses admin user locale instead of credit memo locale
[Bug] CreditMemo Pdf translation uses user locale instead of credit memo locale
Nov 19, 2020
CreditMemo Pdf uses
|trans
filter, which relies on current user locale, which is admin user for admin panel.RefundPlugin/src/Resources/views/Download/creditMemo.html.twig
Line 35 in 02d9399
Solution is to specify
creditMemo.localeCode
in eachtrans
filterPersonally I'm using special macro for pdf and emails like so
Example from my debug, where credit memo is in
de
, but my admin user locale isen
. I've replaced some|trans
uses withcreditMemo.localeCode
, so you can see the mismatch.The text was updated successfully, but these errors were encountered: