The internationalisation API.
The internationalisation API.
Injection helper for i18n components
Brings a convenient implicit conversion from RequestHeader to Messages.
Brings a convenient implicit conversion from 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.
A Lang supported by the application.
a valid ISO Language Code.
a valid ISO Country Code.
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: