We don't actually need the parser function, per se, but we do need the same information available to parsoid so that we can enable/disable language converter appropriately. (See T153341: Export LanguageConverter enabled status in page info from core.)
This was added on the PHP side in T59603: Create a {{PAGELANGUAGE}} magic word.