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
+20
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,26 @@ i18next.init({
42
42
})
43
43
```
44
44
45
+
**Slow i18next initialization?**
46
+
47
+
The chance is high, that your http requests fails. In that case i18next retries a couple of times before finishing the initialization.
48
+
You have 2 options to address this:
49
+
50
+
*1) The correct way:*
51
+
Analyze your http requests and fix them. (Wrong path? Wrong server implementation? etc...)
52
+
53
+
*2) Configure i18next to not retry:*
54
+
Modify the `retryTimeout` and/or `maxRetries` to match your needs. (i.e. set `maxRetries: 1`)
55
+
56
+
```js
57
+
i18next.init({
58
+
// ...
59
+
retryTimeout:350,
60
+
maxRetries:5,
61
+
// ...
62
+
})
63
+
```
64
+
45
65
# Getting started
46
66
47
67
Source can be loaded via [npm](https://www.npmjs.com/package/i18next-http-backend) or [downloaded](https://github.com/i18next/i18next-http-backend/blob/master/i18nextHttpBackend.min.js) from this repo.
0 commit comments