How can I use Messages & Internationalization in a PDF?
ChickenSniper opened this issue · comments
Rob 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?
Marco Sinigaglia commented
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")