innoveit / play2-pdf

A PDF module for Play Framework 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I use Messages & Internationalization in a PDF?

ChickenSniper opened this issue · comments

commented

i.e. play.api.i18n.Messages

I need to generate my PDFs based on a user's preferred language. How would I do this with this package?

Hi, the Messages works in the same way, if you need to force a language you have to pass as parameter to the template.
@Messages.get(Lang.forCode(language), "lbl.welcome")