You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This class provides a method that allows working with the localization data.

SimpleMessage()


Instantiates a new empty SimpleMessage class object

Example:

SimpleMessage
let sm = new SimpleMessage();


getMessage(message, category)


This method gets a translation of the message specified and returns it in the user's language.


Parameter(s):

NameTypeMandatoryDefault Value
messageStringYN
categoryStringN'app'


Return:

TypeDescription
StringReturns a message in the user's language.


Example:

getMessage
let sm = new SimpleMessage();
ss.info(sm.getMessage('Information'));

  • No labels