Hello,
I am trying to migrate an existing application to Play 2.6, but fails to do so. If I try to start from scratch from the documentation and use this piece of code:
import javax.inject.Inject
import play.api.i18n._
class MySupportController @Inject()(val controllerComponents: ControllerComponents)
extends BaseController
with I18nSupport {
def messages2 = Action { implicit request =>
// type enrichment through I18nSupport
val lang: Lang = request.lang
val message: String = messagesApi("info.error")(lang)
Ok(message)
}
}
I get a: value lang is not a member of type parameter R[B]
Any idea ?