code: function (message, context) {
                  message = this.messages[message] || message.toString();
                  if (context) {
                      $.each(context, function (key, value) {
                          message = message.replace('{' + key + '}', value);
                      });
                  }
                  return message;
              }
docs: Translation function, gets the message key to be translated and an object with context specific data as arguments: