mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Send language when making API requests"
This commit is contained in:
commit
cda0a0c473
|
@ -277,7 +277,10 @@ ve.init.mw.Target.static.name = 'mwTarget';
|
|||
*/
|
||||
ve.init.mw.Target.static.apiRequest = function ( data, settings ) {
|
||||
var key, formData;
|
||||
data = ve.extendObject( { 'format': 'json' }, data );
|
||||
data = ve.extendObject( {
|
||||
'format': 'json',
|
||||
'uselang': mw.config.get( 'wgUserLanguage' )
|
||||
}, data );
|
||||
settings = ve.extendObject( {
|
||||
'url': mw.util.wikiScript( 'api' ),
|
||||
'dataType': 'json',
|
||||
|
|
Loading…
Reference in a new issue