Translate custom labels on invoice template

I found a correct way to do it with the trans() function.

Then I checked if what I was looking for was already translated, which was the case as in the screenshot below.

resources\lang\fr\texts.php

Then, I’ve put my query results in the trans function with the right key.

Et voila, I got my lines translated.

1 Like