public interface Messages
extends play.api.i18n.MessagesProvider
This interface that is typically backed by MessagesImpl, but does not return MessagesApi.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Messages.Attrs |
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
apply(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Get the message at the first defined key.
|
default java.lang.String |
apply(java.lang.String key,
java.lang.Object... args)
Get the message at the given key.
|
play.api.i18n.Messages |
asScala() |
java.lang.String |
at(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Get the message at the first defined key.
|
java.lang.String |
at(java.lang.String key,
java.lang.Object... args)
Get the message at the given key.
|
java.lang.Boolean |
isDefinedAt(java.lang.String key)
Check if a message key is defined.
|
Lang |
lang()
Get the lang for these messages.
|
default play.api.i18n.Messages |
messages() |
Lang lang()
default java.lang.String apply(java.lang.String key,
java.lang.Object... args)
Uses `java.text.MessageFormat` internally to format the message.
key - the message keyargs - the message argumentsdefault java.lang.String apply(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Uses `java.text.MessageFormat` internally to format the message.
keys - the messages keysargs - the message argumentsjava.lang.String at(java.lang.String key,
java.lang.Object... args)
Uses `java.text.MessageFormat` internally to format the message.
key - the message keyargs - the message argumentsjava.lang.String at(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Uses `java.text.MessageFormat` internally to format the message.
keys - the messages keysargs - the message argumentsjava.lang.Boolean isDefinedAt(java.lang.String key)
key - the message keyplay.api.i18n.Messages asScala()
default play.api.i18n.Messages messages()
messages in interface play.api.i18n.MessagesProvider