Update localization.md (#2263)

zio/stable
Bryan Lumbantobing 2023-12-22 06:58:42 +08:00 committed by GitHub
parent bc31da47fd
commit 64dc8ff342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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";