Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/i18n/MessagesApi.html below:
MessagesApi - play.api.i18n.MessagesApi
abstract def apply(keys: Seq[String], args: Any*)(implicit lang: Lang): String
Translates the first defined message.
abstract def apply(key: String, args: Any*)(implicit lang: Lang): String
Translates a message.
abstract def clearLang(result: Result): Result
abstract def isDefinedAt(key: String)(implicit lang: Lang): Boolean
Check if a message key is defined.
abstract def langCookieHttpOnly: Boolean
abstract def langCookieName: String
abstract def langCookieSecure: Boolean
abstract def messages: Map[String, Map[String, String]]
Get all the defined messages
abstract def preferred(request: RequestHeader): Messages
Get the preferred messages for the given Java request
abstract def preferred(request: RequestHeader): Messages
Get the preferred messages for the given request
abstract def preferred(candidates: Seq[Lang]): Messages
Get the preferred messages for the given candidates.
abstract def setLang(result: Result, lang: Lang): Result
Set the language on the result
abstract def translate(key: String, args: Seq[Any])(implicit lang: Lang): Option[String]
Translates a message.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4