The internationalisation API.
The internationalisation API.
Injection helper for i18n components
Brings a convenient implicit conversion from play.api.mvc.RequestHeader to Messages.
Brings a convenient implicit conversion from play.api.mvc.RequestHeader to Messages.
Example:
import play.api.i18n.Messages class MyController(val messagesApi: MessagesApi) extends ControllerLike with I18nSupport { val action = Action { implicit request => Ok(Messages("some.key")) // Uses the client’s preferred language } }
A Lang supported by the application.
Manages languages in Play
Provides messages for a particular language.
Provides messages for a particular language.
This intended for use to carry both the messages and the current language, particularly useful in templates so that both can be captured by one parameter.
The lang (context)
The messages
The internationalisation API.
Contains the internationalisation API.
For example, translating a message: