Skip to content

Setting language in neon config doesn't work #22

@pdrhlik

Description

@pdrhlik

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions