Originally reported at w:en:Wikipedia:Village pump (technical).
Steps to replicate the issue (include links if applicable):
A working example created by @PrimeHunter exists on testwiki: w:test:NewPagesFeed language test.
- On w:test:Special:Preferences, set your interface language to a language other than English, e.g. Danish.
- Create a new page containing the __TOC__ magic word and at least one heading, so that a table of contents will be rendered.
- Revert your language setting and find the entry for your test page on w:test:Special:NewPagesFeed.
What happens?:
The page preview on Special:NewPagesFeed includes the heading of the table of contents in the language you had set before creating the page. In the case of Danish, look for the word "Indholdsfortegnelse".
What should have happened instead?:
The page preview should include the heading of the table of contents in the content language of the page. In the case of English, that should be the word "Contents".
Software version (skip for WMF-hosted wikis like Wikipedia): N/A
Other information (browser name/version, screenshots, etc.): N/A