better reuse of detectLanguage subfunctions, check against supportedlng when checking headers