HomePhabricator

Inject language links on ContentAlterParserOutput

Authored by daniel.

Description

Inject language links on ContentAlterParserOutput

Using ContentAlterParserOutput instead of ParserAfterParse has two
major advantages:

  • it is not triggered when parsing system message or other interface text.
  • it works for all content models, not just wikitext.

Note that ContentAlterParserOutput is triggered on Edit, Preview,
LinksUpdate, and stashedit.

Change-Id: I5ee84362debadf97ea4bd256ae7db5fba663a876