implicit class RequestWithMessagesApi extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- RequestWithMessagesApi
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new RequestWithMessagesApi(request: RequestHeader)
Value Members
- def lang(implicit messagesApi: MessagesApi): Lang
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
- def messages(implicit messagesApi: MessagesApi): Messages
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.