i18next-http-middleware 3.1.5 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/README.md +4 -0
- package/index.d.ts +4 -0
- package/licence +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
## [v3.1.6](https://github.com/i18next/i18next-http-middleware/compare/v3.1.5...v3.1.6)
|
|
2
|
+
- add Fastify type support [#47](https://github.com/i18next/i18next-http-middleware/pull/47)
|
|
3
|
+
|
|
4
|
+
## [v3.1.5](https://github.com/i18next/i18next-http-middleware/compare/v3.1.4...v3.1.5)
|
|
5
|
+
- fallbackLng option can also be a function
|
|
6
|
+
|
|
7
|
+
## [v3.1.4](https://github.com/i18next/i18next-http-middleware/compare/v3.1.3...v3.1.4)
|
|
8
|
+
- fix for [point-of-view](https://github.com/fastify/point-of-view)
|
|
9
|
+
- update all dependencies
|
|
10
|
+
|
|
11
|
+
## [v3.1.3](https://github.com/i18next/i18next-http-middleware/compare/v3.1.2...v3.1.3)
|
|
12
|
+
- optimize getQuery() function to check if req.query is iterable
|
|
13
|
+
|
|
14
|
+
## [v3.1.2](https://github.com/i18next/i18next-http-middleware/compare/v3.1.1...v3.1.2)
|
|
15
|
+
- fix the type of the lookup method [#37](https://github.com/i18next/i18next-http-middleware/pull/37)
|
|
16
|
+
|
|
17
|
+
## [v3.1.1](https://github.com/i18next/i18next-http-middleware/compare/v3.1.0...v3.1.1)
|
|
18
|
+
- make sure no undefined language is detected
|
|
19
|
+
|
|
20
|
+
## [v3.1.0](https://github.com/i18next/i18next-http-middleware/compare/v3.0.6...v3.1.0)
|
|
21
|
+
- added types
|
|
22
|
+
|
|
23
|
+
## [v3.0.6](https://github.com/i18next/i18next-http-middleware/compare/v3.0.5...v3.0.6)
|
|
24
|
+
- ignoreCase option true by default
|
|
25
|
+
|
|
26
|
+
## [v3.0.5](https://github.com/i18next/i18next-http-middleware/compare/v3.0.4...v3.0.5)
|
|
27
|
+
- introduce ignoreCase option
|
|
28
|
+
|
|
29
|
+
## [v3.0.4](https://github.com/i18next/i18next-http-middleware/compare/v3.0.3...v3.0.4)
|
|
30
|
+
- fix language detection algorithm to handle fallbackLng correctly
|
|
31
|
+
|
|
32
|
+
## [v3.0.3](https://github.com/i18next/i18next-http-middleware/compare/v3.0.2...v3.0.3)
|
|
33
|
+
- prevent URIError with cookie language detector
|
|
34
|
+
|
|
35
|
+
## [v3.0.2](https://github.com/i18next/i18next-http-middleware/compare/v3.0.1...v3.0.2)
|
|
36
|
+
- transpile also esm
|
|
37
|
+
|
|
38
|
+
## [v3.0.1](https://github.com/i18next/i18next-http-middleware/compare/v3.0.0...v3.0.1)
|
|
39
|
+
- introduce lookupHeaderRegex option
|
|
40
|
+
|
|
41
|
+
## [v3.0.0](https://github.com/i18next/i18next-http-middleware/compare/v2.1.2...v3.0.0)
|
|
42
|
+
- **BREAKING** needs i18next >= 19.5.0
|
|
43
|
+
- let i18next figure out which detected lng is best match
|
|
44
|
+
|
|
45
|
+
## [v2.1.2](https://github.com/i18next/i18next-http-middleware/compare/v2.1.1...v2.1.2)
|
|
46
|
+
- fix: get whitelist from correct property
|
|
47
|
+
|
|
48
|
+
## [v2.1.1](https://github.com/i18next/i18next-http-middleware/compare/v2.1.0...v2.1.1)
|
|
49
|
+
- extend httpFunctions getQuery to handle some edge cases
|
|
50
|
+
|
|
51
|
+
## [v2.1.0](https://github.com/i18next/i18next-http-middleware/compare/v2.0.0...v2.1.0)
|
|
52
|
+
- LanguageDetector: cookie, new option: cookiePath
|
|
53
|
+
|
|
54
|
+
## [v2.0.0](https://github.com/i18next/i18next-http-middleware/compare/v1.3.1...v2.0.0)
|
|
55
|
+
- potentially BREAKING: change cookie defaults: cookieSameSite: 'strict'
|
package/README.md
CHANGED
|
@@ -169,6 +169,10 @@ app.post('/locales/add/:lng/:ns', middleware.missingKeyHandler(i18next))
|
|
|
169
169
|
|
|
170
170
|
// multiload backend route
|
|
171
171
|
app.get('/locales/resources.json', middleware.getResourcesHandler(i18next))
|
|
172
|
+
// can be used like:
|
|
173
|
+
// GET /locales/resources.json
|
|
174
|
+
// GET /locales/resources.json?lng=en
|
|
175
|
+
// GET /locales/resources.json?lng=en&ns=translation
|
|
172
176
|
```
|
|
173
177
|
|
|
174
178
|
## add localized routes
|
package/index.d.ts
CHANGED
package/licence
CHANGED