translatte
Advanced tools
Comparing version 2.5.6 to 2.5.7
@@ -179,2 +179,5 @@ const querystring = require('querystring'); | ||
'Ocp-Apim-Subscription-Key': opts.services['microsoft_v3']['key'], | ||
'Ocp-Apim-Subscription-Region': opts.services['microsoft_v3']['location'] | ||
? opts.services['microsoft_v3']['location'].replace(/[^a-z]/ig, '').toLowerCase() | ||
: 'global', | ||
'Content-type': 'application/json' | ||
@@ -181,0 +184,0 @@ }, |
{ | ||
"name": "translatte", | ||
"version": "2.5.6", | ||
"version": "2.5.7", | ||
"description": "A free and unlimited translate for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -129,3 +129,3 @@ # A free and unlimited translate for NodeJS. | ||
- <a href="https://cloud.google.com/translate/docs/quickstart-client-libraries-v3" target="_blank">Google Cloud</a>, requires registration and credit card details. 500,000 characters per month are issued free of charge, then $20 for every million characters. | ||
- `{"microsoft_v3": {"key": "XXX"}}` | ||
- `{"microsoft_v3": {"key": "XXX", "location": "global"}}` | ||
- <a href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator-text-api/" target="_blank">Microsoft Azure</a>, requires registration and credit card details. Free of charge 2,000,000 characters per month, then $10 for every million characters. | ||
@@ -132,0 +132,0 @@ - `{"yandex_v1": {"key": "XXX"}}` |
643519
625