Does anyone know why an anonymous user can't switch the interface language?
I was surprised that doesn't work for including templates into localization page according to the interface language. I use on my wiki more four years the really easy trick for it. I use the system message Langcode, what do return language code accordance with a current choice language interface of the user.
But in messages of MediaWiki core was nothing the message similar for this use. I created a message Langcode in localization files for it and sent it for a review into Gerrit. I hope for a merging.