Detect language from params