Just went through the changelog. It's been around since 4.4.0 – client-side language detection.
Here's one of several commits, though the only one with a video in the thread:
https://github.com/mastodon/mastodon/pull/33042
I didn't know about client-side language detection! This is clever, albeit slightly wonky as well: I mostly post in English, so I don't know why it would flash as often as I see it does.