MessagesImpl
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.
Value parameters
- lang
-
The lang (context)
- messagesApi
-
The messages API
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messagestrait MessagesProviderclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Translates a message.
Translates a message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- key
-
the message key
Attributes
- Returns
-
the formatted message or a default rendering if the key wasn’t defined
- Definition Classes
Translates the first defined message.
Translates the first defined message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- keys
-
the message key
Attributes
- Returns
-
the formatted message or a default rendering if the key wasn’t defined
- Definition Classes
Attributes
- Returns
-
the Java version for this Messages.
- Definition Classes
Check if a message key is defined.
Check if a message key is defined.
Value parameters
- key
-
the message key
Attributes
- Returns
-
a boolean
- Definition Classes
Translates a message.
Translates a message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- key
-
the message key
Attributes
- Returns
-
the formatted message, if this key was defined
- Definition Classes