// Will return "% of equity"
var text = Framework.Translation.TranslateItem("VolumePercentOfEquity");
Some of the available variables include placeholders, designed to be replaced by run-time values. For example,
You can provide values for these placeholders by supplying an array as an optional second parameter to
// Create message saying that the user is allowed to select a maximum of 20 markets
var maxAllowedMsg = Framework.Translation.TranslateItem("MaxSelectMarkets", [20]);
Note: because translation is so widely used within MyTrader, the framework provides a helper shortcut to stop programmers' fingers wearing down. You can use
var maxAllowedMsg = Framework.$T("MaxSelectMarkets", [20]);