Santhosh has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/382111 )
Change subject: Matxin MT: Use an API key to access the service ...................................................................... Matxin MT: Use an API key to access the service As Matchin maintainers suggested, the API is adding a key to control the usage of service. Change-Id: Ib5c40b907ffdc251f0e7af1de9b8b95f2201257a --- M lib/mt/Matxin.js 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver refs/changes/11/382111/1 diff --git a/lib/mt/Matxin.js b/lib/mt/Matxin.js index c48959d..6b9546f 100644 --- a/lib/mt/Matxin.js +++ b/lib/mt/Matxin.js @@ -23,11 +23,16 @@ return preq.post( { uri: this.conf.mt.Matxin.api, body: { + key: this.conf.mt.Matxin.key, direction: sourceLang + '-' + targetLang, text: sourceText } } ).then( ( response ) => response.body.translation.replace( /\. ॥ ॥\. /g, '.॥॥.' ) ); } + + requiresAuthorization() { + return true; + } } module.exports = Matxin; -- To view, visit https://gerrit.wikimedia.org/r/382111 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib5c40b907ffdc251f0e7af1de9b8b95f2201257a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/cxserver Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits