This class provides a method that allows working with the localization data.
SimpleMessage()
Instantiates a new empty SimpleMessage class object
Example:
SimpleMessage
const message = new SimpleMessage();
getMessage(message, category)
This method gets a translation of the message specified and returns it in the user's language.
Parameter(s):
Name
Type
Mandatory
Default Value
message
String
Y
N
category
String
N
app
params
Object
N
N
Return:
Type
Description
String
Returns a message in the user's language.
Example:
getMessage
const message = new SimpleMessage();
ss.info(`${message.getMessage('cannot be blank', 'app', {"column_translated_title": "Field Name", "column_name": "field_name"})}`);
// The "{column_translated_title}" [{column_name}] field is mandatory.