play.api.i18n.I18NSupportLowPriorityImplicits
Adds a lang
method that can be used on a request,
returning the lang corresponding to the preferred language
of the request.
Adds a lang
method that can be used on a request,
returning the lang corresponding to the preferred language
of the request.
For example:
implicit val messagesApi: MessagesApi = ... val lang: Lang = request.lang
Adds a messages
method that can be used on a request,
returning the Messages object in the preferred language
of the request.
Adds a messages
method that can be used on a request,
returning the Messages object in the preferred language
of the request.
For example:
implicit val messagesApi: MessagesApi = ... val messageFromRequest: Messages = request.messages("hello.world")
Adds convenient methods to handle the messages.