$( function () { 'use strict'; var api = new mw.Api(); api.post( { action: 'query', format: 'json', list: 'cxpublishedtranslations', to: 'uk' } ) .done( function ( response ) { mw.log( response ); } ); } );