Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting language in neon config doesn't work #22

Open
pdrhlik opened this issue Sep 17, 2020 · 1 comment
Open

Setting language in neon config doesn't work #22

pdrhlik opened this issue Sep 17, 2020 · 1 comment

Comments

@pdrhlik
Copy link

pdrhlik commented Sep 17, 2020

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
Copy link
Member

MartkCz commented Oct 21, 2020

I tried dev-master and everything is alright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants