Language identification can be an important step in a Natural Language Processing (NLP) problem. It involves trying to predict the natural language of a piece of text. It is important to know the language of the text before other actions (i.e. translation/ sentiment analysis) can be taken.
Here is a video that explains the use of the below libraries in language detection.
In this video, you can understand the each and every package with a sample code and how to use them.
These are general NLP libraries that support language detection.