public interface Messages
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 |
---|---|
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.
|
Lang lang()
java.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()