A messages returns string messages using a chosen language.
This is commonly backed by a MessagesImpl case class, but does extend Product and does not expose MessagesApi as part of its interface.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class MessagesImpl
Members list
Value members
Abstract 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
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
Attributes
- Returns
-
the Java version for this Messages.
Check if a message key is defined.
Check if a message key is defined.
Value parameters
- key
-
the message key
Attributes
- Returns
-
a boolean
Returns the language associated with the messages.
Returns the language associated with the messages.
Attributes
- Returns
-
the selected language.