[6.x] Introduce I18nService core service and I18nContext. (#29944)

This commit is contained in:
Aleh Zasypkin 2019-02-04 14:39:45 +01:00 committed by GitHub
parent 789df7ca7a
commit e7c5c0bf3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
165 changed files with 3805 additions and 3891 deletions

View file

@ -9,7 +9,7 @@ import 'plugins/grokdebugger/services/grokdebugger';
import { GrokDebugger } from '../../components/grok_debugger';
import { render } from 'react-dom';
import React from 'react';
import { I18nProvider } from '@kbn/i18n/react';
import { I18nContext } from 'ui/i18n';
const app = uiModules.get('xpack/grokdebugger');
@ -19,7 +19,7 @@ app.directive('grokdebugger', function ($injector) {
return {
restrict: 'E',
link: (scope, el) => {
render(<I18nProvider><GrokDebugger grokdebuggerService={grokdebuggerService} /></I18nProvider>, el[0]);
render(<I18nContext><GrokDebugger grokdebuggerService={grokdebuggerService} /></I18nContext>, el[0]);
}
};
});