Skip to content

Commit 146a83c

Browse files
committed
update readme
1 parent dc24c8e commit 146a83c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const MyComponent = () => {
6161

6262
return (
6363
<div>
64-
<h1>{t("Welcome to our app!", "static")}</h1>
64+
<h1>{t("Welcome to our app!", false)}</h1>
6565
<p>{t("This text will be automatically translated")}</p>
6666
</div>
6767
);
@@ -213,17 +213,17 @@ Returns an object with:
213213
- `loading`: Boolean indicating initialization of translations
214214
- `error`: Error object if translation loading failed
215215

216-
### Static persist
216+
### Persist for Editing
217217

218-
When you pass the 'static' parameter to the translation function, the translation will be persisted so that you can review and edit in the dashboard, default is non-static, nothing will be persisted.
218+
The 'persist' means the string will be persisted so that you can review and edit in the [dashboard](https://dashboard.autolocalise.com), default is true, if the content is dynamic or you don't want to see in the dashboard, pass 'false'.
219219

220220
```typescript
221221
import { useAutoTranslate } from "react-autolocalise";
222222
const MyComponent = () => {
223223
const { t } = useAutoTranslate();
224224
return (
225225
<div>
226-
<h1>{t("Welcome to our app!", "static")}</h1>
226+
<h1>{t("Welcome to our app!", false)}</h1>
227227
</div>
228228
);
229229
};

0 commit comments

Comments
 (0)