Added language detection to the CsaClient