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","vikash4...@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","vikash4...@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 -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/fa874ec1-2b52-4cf7-a4f4-d1a6d84d8063n%40googlegroups.com.
Usig goole-translate-api (Cloud Translation) requested array object value chnage after translation. 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 " (quote) near before 18 value in response. Example Request 2: Below data will be passing in request for translate on goole-translate-api - Request2 : {q: '[["61b1a627f6ec52566b8da04c","All Group","Testing","vikash","vikash4...@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","vikash4...@abc.com",falso,"0","12345678"," Asia/Calcuta","1","5c2cc535c1810b3bc193d267",14,0]] problem in response2 : Getting space before Asia/Calcuta - string after " (quote) Can you please help me in this? Thanks & Regards, Hiren Patel