mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fix outdated docs (#58729)
This commit is contained in:
parent
8a4bb61f05
commit
da3c9d968c
1 changed files with 2 additions and 2 deletions
|
@ -391,9 +391,9 @@ Note that for VSCode, to enable "live" linting of TypeScript (and other) file ty
|
|||
|
||||
All user-facing labels and info texts in Kibana should be internationalized. Please take a look at the [readme](packages/kbn-i18n/README.md) and the [guideline](packages/kbn-i18n/GUIDELINE.md) of the i18n package on how to do so.
|
||||
|
||||
In order to enable translations in the React parts of the application, the top most component of every `ReactDOM.render` call should be an `I18nContext`:
|
||||
In order to enable translations in the React parts of the application, the top most component of every `ReactDOM.render` call should be the `Context` component from the `i18n` core service:
|
||||
```jsx
|
||||
import { I18nContext } from 'ui/i18n';
|
||||
const I18nContext = coreStart.i18n.Context;
|
||||
|
||||
ReactDOM.render(
|
||||
<I18nContext>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue