Added fallback parameter to detectLanguage