code: function (str) {
      str = str.split('Blockly.Msg.')[1].split(' ');
      return {
          key: str[0],
          value: str
              .splice(2, str.length)
              .join(' ')
              .slice(1, -2) // strip off initial ', and ending ';
              .replace(/\\'/g, "'")
      };
  }
docs: Extract key and value from message definition