wooorm/franc
▻https://github.com/wooorm/franc
What’s so cool about franc?
franc supports more languages(†) than any other library, or Google;
franc is easily forked to support 300+ languages;
franc is just as fast as the competition.
† - If humans write in the language, on the web, and the language has more than one million speakers, franc detects it.