update node modules
This commit is contained in:
17
node_modules/i18next-browser-languagedetector/README.md
generated
vendored
17
node_modules/i18next-browser-languagedetector/README.md
generated
vendored
@@ -7,6 +7,7 @@
|
||||
This is a i18next language detection plugin use to detect user language in the browser with support for:
|
||||
|
||||
- cookie (set cookie i18next=LANGUAGE)
|
||||
- sessionStorage (set key i18nextLng=LANGUAGE)
|
||||
- localStorage (set key i18nextLng=LANGUAGE)
|
||||
- navigator (set browser language)
|
||||
- querystring (append `?lng=LANGUAGE` to URL)
|
||||
@@ -46,7 +47,7 @@ As with all modules you can either pass the constructor function (class) to the
|
||||
```js
|
||||
{
|
||||
// order and from where user language should be detected
|
||||
order: ['querystring', 'cookie', 'localStorage', 'navigator', 'htmlTag', 'path', 'subdomain'],
|
||||
order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag', 'path', 'subdomain'],
|
||||
|
||||
// keys or params to lookup language from
|
||||
lookupQuerystring: 'lng',
|
||||
@@ -108,7 +109,7 @@ via calling init:
|
||||
```js
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
const languageDetector = new LanguageDetector();
|
||||
lngDetector.init(options);
|
||||
languageDetector.init(options);
|
||||
```
|
||||
|
||||
## Adding own detection functionality
|
||||
@@ -159,3 +160,15 @@ Don't forget: You have to add the name of your detector (`myDetectorsName` in th
|
||||
<img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
**localization as a service - locize.com**
|
||||
|
||||
Needing a translation management? Want to edit your translations with an InContext Editor? Use the orginal provided to you by the maintainers of i18next!
|
||||
|
||||

|
||||
|
||||
With using [locize](http://locize.com/?utm_source=react_i18next_readme&utm_medium=github) you directly support the future of i18next and react-i18next.
|
||||
|
||||
---
|
||||
|
Reference in New Issue
Block a user