mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[6.x] Introduce I18nService
core service and I18nContext
. (#29944)
This commit is contained in:
parent
789df7ca7a
commit
e7c5c0bf3d
165 changed files with 3805 additions and 3891 deletions
|
@ -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]);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue