Translate json object using google api

442 views
Skip to first unread message

Prithivraj

unread,
Sep 18, 2017, 9:02:59 AM9/18/17
to Google Cloud Translation API
How to use google translate api for translating value part in json format without translating key part?

For Example: {message: "Hello World"}

In the above example only "Hello World" needs to be translated.

Prithivraj

unread,
Sep 18, 2017, 9:02:59 AM9/18/17
to Google Cloud Translation API

Shivam(Google Cloud Support)

unread,
Sep 18, 2017, 3:53:32 PM9/18/17
to Google Cloud Translation API
If you make your call based on the example, you can use the q parameter to specify each text string to translate.




Reply all
Reply to author
Forward
0 new messages