update to state of the art
This commit is contained in:
17
node_modules/i18next-browser-languagedetector/index.d.ts
generated
vendored
17
node_modules/i18next-browser-languagedetector/index.d.ts
generated
vendored
@@ -1,22 +1,6 @@
|
||||
import * as i18next from 'i18next';
|
||||
|
||||
interface DetectorOptions {
|
||||
/**
|
||||
* only detect languages that are in the whitelist
|
||||
* @default true
|
||||
*/
|
||||
checkWhitelist?: boolean;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
* @default false
|
||||
*/
|
||||
checkForSimilarInWhitelist?: boolean;
|
||||
|
||||
/**
|
||||
* order and from where user language should be detected
|
||||
*/
|
||||
@@ -29,6 +13,7 @@ interface DetectorOptions {
|
||||
*/
|
||||
lookupQuerystring?: string;
|
||||
lookupCookie?: string;
|
||||
lookupSessionStorage?: string;
|
||||
lookupLocalStorage?: string;
|
||||
lookupFromPathIndex?: number;
|
||||
lookupFromSubdomainIndex?: number;
|
||||
|
Reference in New Issue
Block a user