import { IntlProvider, addLocaleData } from 'react-intl';
import { connect } from 'react-redux';
import en from 'react-intl/locale-data/en';
import ko from 'react-intl/locale-data/ko';

import messages from 'common/i18n/messages';

addLocaleData(en);
addLocaleData(ko);

function mapStateToProps(state) {
  const locale = state.locale;
  return { locale, messages: messages[locale] };
}

export default connect(mapStateToProps)(IntlProvider);

@@ -1,16 +1,55 @@
+import %7B connect %7D from 'react-redux';%0A
 import %7B IntlPro
@@ -94,91 +94,8 @@
 l';%0A
-import %7B connect %7D from 'react-redux';%0Aimport en from 'react-intl/locale-data/en';%0A
 impo
@@ -185,27 +185,8 @@
 ';%0A%0A
-addLocaleData(en);%0A
 addL

Remove 'react-intl/locale-data/en' because it's default.