Steps to replicate the issue (include links if applicable):
- Choose main page of any Wikipedia, for example https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal
- Log in with your Wikipedia user account
- Set your language either in the local or in the global user settings, for example to "de"
- Reload the main page
What happens?:
Now the HTML code includes unwanted attributes lang="de", for example in the html tag for the whole page, but also <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" lang="de" dir="ltr">Bienvenue Stefan Weil</div>
What should have happened instead?:
The English / French / Italian / ... Wikipedia is still mainly English / French / Italian, even when I choose a different language in my user preferences. Therefore lang="de" should only by used where appropriate.
Other information (browser name/version, screenshots, etc.):
Tested with latest Firefox which now offers translations. Because of the wrong language settings in Wikipedia's HTML code that does not work as expected.
