setLocale(messages) {
    Object.keys(messages).forEach((k) => {
      Blockly.Msg[k] = messages[k];
    });
  }
Set the messages for the typed variable modal.
Used to change the location.
@param {!TypedVarModalMessages} messages The messages needed to create a
    typed modal.