Versions Compared
compared with
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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
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):
Name | Type | Mandatory | Default Value |
---|---|---|---|
message | String | Y | N |
category | String | N | 'app' |
Return:
Type | Description |
---|---|
String | Returns a message in the user's language. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let sm = new SimpleMessage(); ss.info(sm.getMessage('Information')); |
Table of Contents | ||||
---|---|---|---|---|
|