-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code: 'BAD_NETWORK' #28
Comments
This will be fixed with a new npm release soon, it just hasn't been published yet. Stay updated for a new release. |
Hey. https://github.com/extensionsapp/translatte const translatte = require('translatte');
// Translate string to English using proxy
translatte('Вы говорите на русском?', {
from: 'ru',
to: 'en',
agents: [
'Mozilla/5.0 (Windows NT 10.0; ...',
'Mozilla/4.0 (Windows NT 10.0; ...',
'Mozilla/5.0 (Windows NT 10.0; ...'
],
proxies: [
'LOGIN:[email protected]:12345',
'LOGIN:[email protected]:54321'
]
}).then(res => {
console.log(res);
}).catch(err => {
console.error(err);
});
// { text: 'Do you speak Russian?',
// from: {
// language: {
// didYouMean: false,
// iso: 'ru'
// },
// text: {
// autoCorrected: false,
// value: '',
// didYouMean: false
// }
// },
// raw: '' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the code I'm running:
The text was updated successfully, but these errors were encountered: