new Content(messages)
A class to provide messages with substitution values
Parameters:
Name | Type | Description |
---|---|---|
messages |
Object.<string, string> | The messages with optional tokens mapped by message id |
- Source:
Methods
message(msgId, valuesopt) → {string}
Returns a content message with substituted valeus
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msgId |
string | The id for the message | |
values |
Object.<string, string> |
<optional> |
The substitution values |
- Source:
Returns:
The message with substituted values if provided
- Type
- string