msgFileType
Description
This option customizes where messages are retrieved from by message id. By default, messages are retrieved from an IBM i message file object. Specifying "json" retrieves them from a JSON message file within the Profound.js modules directory instead, which allows message-driven applications to run off-platform.
Example
msgFileType: "json"JSON Message File Format
Each key is a message id. text is the first-level message text, second_level_text is the optional help text, and data describes the replacement variables referenced in the text:
{
"MSG0001": {
"text": "Completed Download Process &2. Job &1.",
"second_level_text": "Processing job &1.",
"data": {
"&1": {
"type": "char",
"length": 28
},
"&2": {
"type": "char",
"varying": true,
"length": 2
}
}
},
"MSG0002": {
"text": "This is a simple message with no replacement data."
}
}For information on how to modify this setting, see Configuration File.