This class provides methods to get translated messages. This class has no constructor; methods can be accessed using the s_i18nglobal object.
getMessage(msgKeys, callback)
This method returns a string containing message in a user language.
The msgKeys parameter should pass the string for translation, and the callback parameter is the function that will be executed after the server response.
If the specified string exists for the current language, then the translated language is returned. If the specified string does not exist for the current language, or it does not exists at all, then the English version of the string is returned.
This method will get only the message that has the Category attribute equal to 'app'.
This method returns an array of strings that contains messages in a user language.
The msgKeys parameter should pass the array of strings for translation, and the callback parameter is the function that will be executed after the server response.
If the specified string exists for the current language, then the translated language is returned. If the specified string does not exist for the current language, or it does not exists at all, then the English version of the string is returned.
This method will get only the messages that have the Category attribute equal to 'app'.