Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Oct 30, 2024
1 parent 47c3a89 commit 8ca3f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/tutorials/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ As you can see, it's a simple mailbox application with only one screen.
## Internationalization in React (Native)

:::tip TL;DR
There are several ways to render translations: You may use the [`Trans`](/docs/ref/macro.mdx#trans) macro or the [`useLingui`](/docs/ref/macro.mdx#uselingui) hook together with the [`t`](/docs/ref/macro.mdx#t) or [`msg`](/docs/ref/macro.mdx#definemessage) macros. When you change the active locale or load new messages, all components that consume the Lingui context provided by [`I18nProvider`](/docs/ref/react.md#i18nprovider) will re-render, making sure the UI shows the correct translations.
There are several ways to render translations: You may use the [`Trans`](/docs/ref/react.md#trans) component or the [`useLingui`](/docs/ref/react.md#uselingui) hook together with the [`t`](/docs/ref/macro.mdx#t) or [`msg`](/docs/ref/macro.mdx#definemessage) macros. When you change the active locale or load new messages, all components that consume the Lingui context provided by [`I18nProvider`](/docs/ref/react.md#i18nprovider) will re-render, making sure the UI shows the correct translations.
:::

Not surprisingly, this part isn't too different from the [React tutorial](/docs/tutorials/react.md).
Expand Down

0 comments on commit 8ca3f15

Please sign in to comment.