mediawiki-extensions-Popups/tests/node-qunit/gateway
Piotr Miazga c1d281f0dc Send the Accept-Language header when calling API
Changes:
 - added acceptLanguage as a config option passed to
 both mwApi and restbaseApi, by default code will use
 the language defined in `wgContentLanguage` config
 variable. The `wgContentLanguage` is always defined
 (see ResourceLoaderStartUpModule::getConfigSettings())
 so there is no need for checking the variable existence.

The new logic was tested both on MediaWiki API and Restbase API

Bug: T198619
Change-Id: I1cb31f1999fd674a8b870b2b5effb92ed3dfaa1f
2018-07-05 11:31:55 -07:00
..
index.test.js Hygiene: replace obvious function methods 2018-03-20 09:27:07 -05:00
mediawiki.test.js Send the Accept-Language header when calling API 2018-07-05 11:31:55 -07:00
rest.test.js Send the Accept-Language header when calling API 2018-07-05 11:31:55 -07:00