Update localization.md (#2263)
parent
bc31da47fd
commit
64dc8ff342
|
@ -32,7 +32,7 @@ import { Text } from "react-native";
|
||||||
const text = "Hello World";
|
const text = "Hello World";
|
||||||
<Text accessibilityLabel="Label is here">{text}</Text>
|
<Text accessibilityLabel="Label is here">{text}</Text>
|
||||||
```
|
```
|
||||||
In this case, you cannot use the `useLingui()` hook:
|
In this case, you can use the `useLingui()` hook:
|
||||||
```jsx
|
```jsx
|
||||||
import { msg } from "@lingui/macro";
|
import { msg } from "@lingui/macro";
|
||||||
import { useLingui } from "@lingui/react";
|
import { useLingui } from "@lingui/react";
|
||||||
|
|
Loading…
Reference in New Issue