i18NV3 - getMessage(String msgKey, Function callback)

Retrieves a translated message.

If the specified string exists in the database for the current language, then the translated message is returned. If the specified string does not exist for the current language, then the English version of the string is returned. If the string does not exist at all in the database, then the ID itself is returned.

Table 1. Parameters
Name Type Description
msgKey String The message to be retrieved.
callback Function The function to be called when the message has been retrieved. The callback function has one argument, a string that is the translated message.
Table 2. Returns
Type Description