title: using react-intl to translate a message key outside a component
body: <p>I'm using the <a href="https://github.com/yahoo/react-intl" rel="nofollow noreferrer">react-intl</a> library for internationalization. Inside a component, I use the <code>injectIntl</code> HOC to translate message keys:</p>
  
  <pre><code>import {injectIntl} from 'react-intl';
  
  const Component = props =&gt; (
      const message = props.intl.formatMessage({id: 'message.key'});
      // remainder of component omitted
  );
  
  export default injectIntl(Component);
  </code></pre>
  
  <p>Is it possible to get a message translation if I'm not inside a component?</p>