YALI is tool for language identification with pretrained models for 122 languages.
perl -MCPAN -e install Lingua::YALI
echo "Language identification with YALI is easy" | yali-language-identifier -l="ces eng"