Skip to content

Commit

Permalink
Update react-intl.md
Browse files Browse the repository at this point in the history
fixed typo in the docs
  • Loading branch information
pieterjanscheir authored Oct 19, 2023
1 parent 40d1556 commit 986f297
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/misc/react-intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Using [Lingui](https://github.com/lingui/js-lingui) macros, we could combine [`T

```jsx
<Trans id="welcome">
Hello <b>{name}</b>, you have {i18n.number(undreadCount)} <Plural one="message" other="messages" />
Hello <b>{name}</b>, you have {i18n.number(unreadCount)} <Plural one="message" other="messages" />
</Trans>
```

Expand Down Expand Up @@ -157,12 +157,12 @@ It's good to mention here that this isn't the best example of using plurals. Mak
value={number}
one={
<>
Hello <b>{name}</b>, you have {i18n.number(undreadMessages)} message.
Hello <b>{name}</b>, you have {i18n.number(unreadMessages)} message.
</>
}
other={
<>
Hello <b>{name}</b>, you have {i18n.number(undreadMessages)} messages.
Hello <b>{name}</b>, you have {i18n.number(unreadMessages)} messages.
</>
}
/>
Expand Down

0 comments on commit 986f297

Please sign in to comment.