Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

SimpleMessage()


Instantiates a new empty SimpleMessage class object

Example:

Code Block
languagejs
themeEclipse
titleSimpleMessage
linenumberstrue
letconst smmessage = 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:

Code Block
languagejs
themeEclipse
titlegetMessage
letconst smmessage = new SimpleMessage();
ss.info(smmessage.getMessage('Information'));


Table of Contents
absoluteUrltrue
classfixedPosition