Parsoid's language variant conversion support is incomplete. For a conversion that is not supported by parsoid, we should fall back to the old converter.
However, the old converter is designed to be called by the classic Parser between parsing stages, on text that is not full HTML yet. There is a comment in Parser::internalParseHalfParsed() that sais: The position of the convert() call should not be changed. It assumes that the links are all replaced and the only thing left is the <nowiki> mark.
There are two choices:
- Just apply the old conversion logic to the full HTML. It may not work 100% initially, but the glitches could be ironed out, or we accept them until the conversion in question has been implemented in Parsoid.
- Don't use Parsoid HTML at all, use the old parser to generate the rendering, including conversion.
The following languages currently have variant conversion implemented in Parsoid: crh, en, ku, sr, zh. This leaves the following which only have conversion implemented in MW: ban, gan, iu, kk, shi, tg, uz.