ninjadev
ninjadev

Reputation: 23

How to dynamically translate in real time using the Google Translation API?

As the user types words, Google translate will dynamically in real-time translate the text on the other side.

Try it out at translate.google.com

Now I hope to mimic this feature on a translation website I'm building. I'm using React for the development.

Thanks.

Upvotes: 0

Views: 4643

Answers (1)

James Burgess
James Burgess

Reputation: 497

To do this, you can use the google translate API

  • Google provides great documentation and tutorials here

If you want to implement the asynchronous calls, you will need to make an ajax request after each word is typed

  • React provides great documentation and tutorials here

Upvotes: 1

Related Questions