You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ const MyComponent = () => {
61
61
62
62
return (
63
63
<div>
64
-
<h1>{t("Welcome to our app!", "static")}</h1>
64
+
<h1>{t("Welcome to our app!", false)}</h1>
65
65
<p>{t("This text will be automatically translated")}</p>
66
66
</div>
67
67
);
@@ -213,17 +213,17 @@ Returns an object with:
213
213
-`loading`: Boolean indicating initialization of translations
214
214
-`error`: Error object if translation loading failed
215
215
216
-
### Static persist
216
+
### Persist for Editing
217
217
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'.
0 commit comments