[Maps] Provide IntlProvider to map listing page (#39459)

This commit is contained in:
Nathan Reese 2019-06-21 18:52:47 -06:00 committed by GitHub
parent b9f8bacdda
commit 4048c10a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
import './kibana_services';
import { wrapInI18nContext } from 'ui/i18n';
import { i18n } from '@kbn/i18n';
// import the uiExports that we want to "use"
@ -39,7 +40,7 @@ data.query.loadLegacyDirectives();
const app = uiModules.get('app/maps', ['ngRoute', 'react']);
app.directive('mapListing', function (reactDirective) {
return reactDirective(MapListing);
return reactDirective(wrapInI18nContext(MapListing));
});
routes.enable();