Skip to content
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

Unable to translate not-default text #2

Closed
JuanjoSalvador opened this issue Apr 29, 2016 · 2 comments
Closed

Unable to translate not-default text #2

JuanjoSalvador opened this issue Apr 29, 2016 · 2 comments

Comments

@JuanjoSalvador
Copy link

JuanjoSalvador commented Apr 29, 2016

I'm trying to execute this code:

translate({
 q: 'text to translate',
 source: 'en',
 target: 'es'
}, function(result) {
  console.log(result);
}); 

And... output it's "texto" when should be "texto para traducir".

Google Translate API it's a paid service, I think Google is fucking this.

@statickidz
Copy link
Owner

statickidz commented Apr 29, 2016

Replace your "q" for "text" and it will work, I update readme because of changes.

translate({
 text: 'text to translate',
 source: 'en',
 target: 'es'
}, function(result) {
  console.log(result);
}); 

@JuanjoSalvador
Copy link
Author

Uhhh. Great, thanks! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants