title: Is there any way to get current intl value outside a react component
body: <p>can we get current intl(locale) value outside react component?</p>
  <pre><code>const locales = {
    locale: 'en',
    messages: {},
  };
  
  import { IntlProvider, addLocaleData } from 'react-intl';
  
  //below is for creating 
  const intlProvider = new IntlProvider(locales, {});
  const { intl } = intlProvider.getChildContext();
  
  //is there any code snippet to get current value from IntlProvider?
  </code></pre>