update modules
This commit is contained in:
12
node_modules/i18next-browser-languagedetector/README.md
generated
vendored
12
node_modules/i18next-browser-languagedetector/README.md
generated
vendored
@@ -67,7 +67,17 @@ As with all modules you can either pass the constructor function (class) to the
|
||||
htmlTag: document.documentElement,
|
||||
|
||||
// only detect languages that are in the whitelist
|
||||
checkWhitelist: true
|
||||
checkWhitelist: true,
|
||||
|
||||
// fallback to a similar whitelist language
|
||||
// Example 1: Browser language is 'es'
|
||||
// if 'es' is not found in whitelist, first fallback to any whitelist language that starts with 'es-', then fallback to fallbackLng ('es' -> 'es-*' -> fallbackLng)
|
||||
// Example 2: Browser language is 'es-MX'
|
||||
// if 'es-MX' is not found in whitelist, first fallback to 'es', then fallback to 'es-*', then fallback to fallbackLng ('es-MX' -> 'es' -> 'es-*' -> fallbackLng)
|
||||
checkForSimilarInWhitelist: false,
|
||||
|
||||
// optional set cookie options, reference:[MDN Set-Cookie docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)
|
||||
cookieOptions: {path:'/'}
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user