3.0 fails to compile translations in play


#1

I’m trying to move an existing project from sbt to gradle. Now I’m stuck in getting translations to work in templates. I keep getting these errors:

could not find implicit value for parameter messages: play.api.i18n.Messages

When using the scala way in templates: @Messages(“key”).

The play project I have is java based, I’m guessing gradle compiles it as a scala play project. I can fix these by adding imports to all the templates, but given the size of the codebase, this would be rather large task. Is there a way to pass something like ‘import these for every template’.