I am using Scala Play Framework 2. I want multilanguage javascript files and it would be perfect to have the possibility to put Messages("title.items") inside javascript files.
To do so, I think we should create a new Asset controller that inject the Lang object. Is there a better way? Where could I find some resources about?
You can use the JsMessages plugin for Play2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With