When I access a random page on ptwiki I get this:
{ "errorMessage": "TypeError: $.uls is undefined", "url": "https://pt.wikipedia.org/static/1.26wmf24/extensions/ContentTranslation/modules/entrypoint/ext.cx.interlanguagelink.js", "lineNumber": 56, "columnNumber": 1, "errorObject": {} }
This is the line causing the error:
language !== $.uls.data.getAutonym( language );