How can I use Google Translate via Ajax using jQuery?

前端 未结 6 1478
名媛妹妹
名媛妹妹 2021-01-24 21:43

I am using Ajax via jQuery, and I am trying to translate using the Google Translate Service. The service does not seem to work for me.

What am I doing wrong? How would I

6条回答
  •  太阳男子
    2021-01-24 22:12

    I think you are following the wrong strategy. You don't make AJAX calls to the Google Translate Service directly, the Google Translate Javascript API wraps this all for you.

    Look at the examples in the API playground.

提交回复
热议问题