contributte / invoice

:memo: PDF invoice generator
https://contributte.org/packages/contributte/invoice.html
MIT License
96 stars 25 forks source link

Setting language in neon config doesn't work #22

Open pdrhlik opened 3 years ago

pdrhlik commented 3 years ago

Setting invoice language in neon config as specified in the docs doesn't work. It always uses the default english language.

invoice:
    lang: cs

I had to manually supply a cs argument to the Translator class like this for it to work:

new Invoice($company, new DefaultTemplate(new Translator("cs"), new Formatter("cs")));

Thanks for looking into that and of course thanks for the package!

MartkCz commented 3 years ago

I tried dev-master and everything is alright