const settings = { language : undefined } ; export default { type : 'languageDetector' , async : false , init : ( ) : void => { } , detect : jest . fn < string [ ] , [ ] > ( ( ) => { const found = [ ] ; if ( settings . language ) { found . push ( settings . language ) ; } return [ ... found , 'en' ] ; } ) , cacheUserLanguage : ( language ) : void => { settings . language = language ; } } ;