Use React-intl translated messages in Redux middleware
<p>I support several languages in my application and use React-intl for this.
I have the Redux middleware where I make a call to the server and in the case of error I want to show an error on the UI.</p>

<p>I know that I can do something like:</p>

<p>1) dispatch an action from middleware with a message key: </p>

<pre><code>{type: SHOW_ERROR, message: 'message_error_key'}
</code></pre>

<p>2) in my React component use:</p>

<pre><code>&lt;FormattedMessage id={this.props.message_error_key}/&gt;
</code></pre>

<p>But is there a way to dispatch an action with already translated message from middleware?</p>

<pre><code>{type: SHOW_ERROR, message: [translated_message_should_be_here]}
</code></pre>