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

translation quality #39

Closed
lavolp3 opened this issue Oct 14, 2019 · 4 comments
Closed

translation quality #39

lavolp3 opened this issue Oct 14, 2019 · 4 comments

Comments

@lavolp3
Copy link

lavolp3 commented Oct 14, 2019

Is there any way to control the quality of the translation?
I have the feeling that my translations are of very bad quality, especially since I reactivated my module a few days ago after several months.
translate.google.com gives much better results.

Sample:
"In 1980, a Las Vegas hospital suspended workers for betting on when patients would die!"

translate.google.com:
"1980 suspendierte ein Krankenhaus in Las Vegas Arbeiter, weil sie darauf gewettet hatten, wann Patienten sterben würden!" (very good)

My App:
translate(result, { from: 'en', to: 'de' }) .then(function(result) { console.log(result.text); }).catch(function(e) { console.log("[MMM-rfacts] Translation ERROR! Translation failed, will fall back to English."); });

Result:
"Im Jahr 1980 suspendierten ein Las Vegas Krankenhausmitarbeiter für Wetten auf, wenn Patienten sterben würden!" (bad quality)

@xfslove
Copy link

xfslove commented Oct 15, 2019

hi, @lavolp3 . you could set the client=gtx. and it will get the result you expected.

@lavolp3
Copy link
Author

lavolp3 commented Oct 15, 2019

Works like a charm! Thanks! What does client: gtx mean? I can't find any reference/description for that.

@xfslove
Copy link

xfslove commented Oct 16, 2019

I'm not sure what the client:gtx means. maybe the client:gtx will use the newest translation api of google.

I just catch the translate.google.com request found the client is different, the translate.google.com parameter is client=webapp, and I tried the gtx, works too.

@lavolp3
Copy link
Author

lavolp3 commented Oct 16, 2019

Closing this since its resolved. However I'd still be interested in the source of this client option

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