Internationalisation API.
For example:
val msgString = Messages("items.found", items.size)
Attributes
Members list
Type members
Classlikes
Request Attributes for the MessagesApi Currently all Attributes are only available inside the MessagesApi methods.
Request Attributes for the MessagesApi Currently all Attributes are only available inside the MessagesApi methods.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Attrs.type
A source for messages
A source for messages
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class UrlMessageSource
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MessageSourceclass Objecttrait Matchableclass AnyShow all
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
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
Check if a message key is defined.
Check if a message key is defined.
Value parameters
- key
-
the message key
Attributes
- Returns
-
a boolean
Parse all messages of a given input.
Parse all messages of a given input.
Attributes
Implicits
Inherited implicits
Attributes
- Inherited from:
- MessagesImplicits