centor
centor

Reputation: 166

Magento 2 - translate attached PDFs

i try to translate my attached pdfs by the invoice in magento 2. normally i can translate all shop sites (based on html) with i18n component. but for the invoice-pdf the translation will not be used. i also tried to copy the i18n content (the *_*.csv files, e.g. en_US.csv) with the translation into:

and also into several paths in:

so the question is: How can i translate the PDFs generated by Magento2?

Upvotes: 1

Views: 482

Answers (1)

DependencyHell
DependencyHell

Reputation: 1071

Try adding adding your translation strings to your theme file :

app/design/frontend/vendorname/themename/i18n/en_US.csv

Like this :

"Grand Total","Big Total"

Note : be careful with spaces at the end of some strings

Upvotes: 0

Related Questions