title: How do you pass a parameter to defineMessages in react-intl?
body: <p>I have an error message like the one below:</p>
  
  <p><code>Could not retrieve data: ${e}</code></p>
  
  <p>How do I convert this to a definedMessage that can accept this error parameter? </p>
  
  <p>A standard definedMessage:</p>
  
  <pre><code>    const messages = defineMessages({
       dataError: {
           id: 'data.error',
           defaultMessage: 'Could not retrieve data: [default message]'
       }
     })
  </code></pre>
  
  <p>Thanks!</p>