It does work but not 100% which makes it feel like it doesn't. Language detection is very far from totally accurate (we use the CLD3 library), so sometimes it gives the wrong language. People can also just select which language they post in because when that's done in good faith it's more reliable than language detection, but of course it can also lead to some posts not being in the language they're supposed to be in. Using language filters cuts down on a lot of posts though, even if some slip through.