Use langdetect for language detection
masterTo improve language detection accuracy, you can use the langdetect library by passing its wrapper to the detect_languages_function parameter in dateparser.parse().
Note: For short strings, language detection may fail. It is highly recommended to use detect_languages_function in conjunction with DEFAULT_LANGUAGES to improve results.
pip install dateparser[langdetect]from dateparser.custom_language_detection.langdetect import detect_languages
import dateparser
dateparser.parse('12/12/12', detect_languages_function=detect_languages)