Browsers typically send Accept-Language headers so you could easily return ads in languages matching that header, without having to analyze your posts.
It’s like switching on to a Spanish TV channel and getting Spanish speaking ads. It’s not targeted because you are signalling you probably understand Spanish.
But not guess a language based on the content of posts.