title: Antd locale is undefined
body: <p>I'm trying to add a LocaleProvider to my app to put the antd components in English (instead of the default Chinese). I followed the following instructions from <a href="https://ant.design/components/locale-provider/" rel="nofollow noreferrer">https://ant.design/components/locale-provider/</a> :</p>
  
  <pre><code>import { LocaleProvider } from 'antd';
  import enUS from 'antd/lib/locale-provider/en_US';
  
  ...
  
  return &lt;LocaleProvider locale={enUS}&gt;&lt;App /&gt;&lt;/LocaleProvider&gt;;
  </code></pre>
  
  <p>This however doesn't work: <code>enUS</code> is <code>undefined</code>. I have declared the Antd library as an external in my webpack config because I don't want to bundle the whole Antd library in my <code>app.js</code>, so I use a <code>&lt;script&gt;</code> tag in the <code>&lt;head&gt;</code>:</p>
  
  <pre><code>    &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/antd/2.11.0/antd-with-locales.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Relevant part of my Webpack configurarion:</p>
  
  <pre><code>externals: {
      "react": "React",
      "react-dom": "ReactDOM",
      "antd": "antd"
  }
  </code></pre>
  
  <p>When I try the second approach described on the LocaleProvider documentation:</p>
  
  <pre><code>const { LocaleProvider, locales } = window.antd;
  
  ...
  
  return &lt;LocaleProvider locale={locales.en_US}&gt;&lt;App /&gt;&lt;/LocaleProvider&gt;;
  </code></pre>
  
  <p>It works and my application is translated. But I don't like the mixture of "import styles". </p>
  
  <p>So, my question is: What am I doing wrong? Why doesn't the first method work? Is this because of adding <code>antd</code> to the externals of my webpack config and if so, how can I solve this?</p>