If your controller looks like this
class MyController extends Controller { def doSomething = Action {...} }
and don't like
class MyController (val messagesApi: MessagesApi) extends Controller with I18nSupport { def doSomething = Action {...} }
you can use the following approach inside your template:
@import play.i18n._ <html> ... <h1>@Messages.get(Lang.forCode("IT"), "home.title")</h1> ... <h1>@Messages.get(Lang.forCode("EN"), "home.title")</h1> ... </html>
source share