mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
786cd234d9
commit
bb50f4e69c
1 changed files with 3 additions and 3 deletions
|
@ -209,7 +209,7 @@ ReactDOM.render(
|
|||
```
|
||||
|
||||
After that we can use `FormattedMessage` components inside `RootComponent`:
|
||||
```js
|
||||
```jsx
|
||||
import React, { Component } from 'react';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
|
@ -233,10 +233,10 @@ class RootComponent extends Component {
|
|||
<p>
|
||||
<FormattedMessage
|
||||
id="welcome"
|
||||
defaultMessage={`Hello {name}, you have {unreadCount, number} {unreadCount, plural,
|
||||
defaultMessage="Hello {name}, you have {unreadCount, number} {unreadCount, plural,
|
||||
one {message}
|
||||
other {messages}
|
||||
}`}
|
||||
}"
|
||||
values={{name: <b>{name}</b>, unreadCount}}
|
||||
/>
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue