update to state of the art

This commit is contained in:
s2
2020-10-10 15:18:01 +02:00
parent cf251a170f
commit 4cdcfd167c
1526 changed files with 48132 additions and 7268 deletions

View File

@@ -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;