Currently, {{int:}} is (ab)used to localize content, either directly by showing a localised message or by using e.g. MediaWiki:Lang to achieve conditional transclusion à-la {{sometemplate/{{int:lang}}}}. However, Parsoid always assumes content language for this parser function. This is generally not a problem for VisualEditor where it even makes sense to display a "canonical" version of text, but page views on multilingual projects like meta and commons are different because these sites rely heavily on user language to display content in it. A few examples:
- File description pages, compare https://commons.wikimedia.org/wiki/File:Sao_Paulo_Railway.jpg?uselang=en vs. https://commons.wikimedia.org/wiki/File:Sao_Paulo_Railway.jpg?uselang=fr
- Talk page templates, compare https://commons.wikimedia.org/wiki/Commons:Bistro?uselang=fr vs. https://commons.wikimedia.org/wiki/Commons:Bistro?uselang=en
- Esoteric templates, e.g. https://commons.wikimedia.org/w/index.php?title=Template:Localized_link&action=edit or even in Lua: https://commons.wikimedia.org/wiki/Module:Fallback
We need to develop a strategy to mitigate thiese problems for Parsoid-based pageviews.