Added automatic language detection for csv upload