Usig goole-translate-api (Cloud Translation) requested array object value change after translation with add space and quote in response automatically
Precondition: all the required setup is done for google-translate-API. Example Request 1: Below data will be passed in request for translation on google-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]] The problem in response1:getting " (quote) before 18 value in response. you can see in request param not available while requesting. Example Request 2: Below data will be passed in request for translation on google-translate-API - *Request2:* {q: '[["61b1a627f6ec52566b8da04c","All Group","Testing","vikash",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",falso,"0","12345678"," Asia/Calcuta","1","5c2cc535c1810b3bc193d267",14,0]] The problem in response2: Getting space before Asia/Calcuta - string and after " (quote). you can see in the request param not available while requesting. *Attached file for better 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/7b87302a-7bbd-4dde-a387-8bd9328b6e61n%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