Interface LanguageDetectorAsyncModule interface LanguageDetectorAsyncModule { async : true ; type : "languageDetector" ; cacheUserLanguage ? ( lng ) : void | Promise < void > ; detect ( callback ) : void | Promise < string | readonly string [] > ; init ? ( services ,
detectorOptions ,
i18nextOptions ) : void ; } Module LanguageDetectorAsyncModule Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:134 Properties async async : true
Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:137 type type : "languageDetector"
Overrides Module .type
Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:135 Methods Optional cache User Language cache User Language ( lng ) : void | Promise < void > Returns void | Promise < void > Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:143 detect detect ( callback ) : void | Promise < string | readonly string [] > Parameters callback : ( ( lng ) => void ) ( lng ) : void Parameters lng : string | readonly string [] Returns void Returns void | Promise < string | readonly string [] > Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:140 Optional init init ( services , detectorOptions , i18nextOptions ) : void Returns void Defined in node_modules/.pnpm/i18next@23.4.2/node_modules/i18next/index.d.ts:138
Used to detect language in user land. Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next). For singleton set property
typeto'languageDetector'For a prototype constructor set static property.