Usig goole-translate-api (Cloud Translation) requested array object value chnage after translation. added unexpected values like - space and " (quote)
Precondition : all the required setup is done for goole-translate-api.
Example Request 1:
Below data will be passing in request for translate on goole-translate-api -
Request1: { q: '[["63c69e757a0d0905c0788ec7","darshan","hello","darshan",18,"5c2cc535c1810b3bc193d267",14,0]]',target: 'es'}
This is the response we got from google-translation-api -
Response1 : [["63c69e757a0d0905c0788ec7","darshan","hola","darshan","18,"5c2cc535c1810b3bc193d267",14,0]]
problem in response1 :getting " (single quote) near before 18 value in response. that's not send in request you can see.Example Request 2:
Below data will be passing in request for translate on goole-translate-api -
Request2 : {q: '[["61b1a627f6ec52566b8da04c","All Group","Testing","vikash","
vikas...@abc.com",false,"0","12345678","Asia/Kolkata","1","5c2cc535c1810b3bc193d267",14,0]]',target: 'es'}
This is the response we got from google-translation-api -
Response2 : [ ["61b1a627f6ec52566b8da04c","Todos los grupos","Pruebas","vikash","
vikas...@abc.com",falso,"0","12345678"," Asia/Calcuta","1","5c2cc535c1810b3bc193d267",14,0]]
problem in response2: Getting space before Asia/Calcuta - string and after " (quote) .space is not send in request you can see.
Attaching the file for proper understanding.Can you please help me in this?
Thanks & Regards,
Hiren Patel