Can Azure Translator translate the Json value?

Ali Alizada 21 Reputation points
2022-11-08T09:49:41.45+00:00

I'm trying to translate the Json values through the azure cognitive service, but it doesn't work. Is there any ability of translation Json value with Azure Translator?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
357 questions
{count} votes

Accepted answer
  1. romungi-MSFT 43,526 Reputation points Microsoft Employee
    2022-11-10T12:07:42.81+00:00

    @Ali Alizada The text translator services uses content type JSON where the text elements need to be document elements as key "Text" values. In your case you are trying to translate an entire JSON which is not possible unless you pre-process your document and pass each value in your document as mentioned in above format.

    Even, the document translation feature does not support the JSON format. You will have to convert your JSON doc to a txt document and pass the same to document translation service to achieve the translated output.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.


0 additional answers

Sort by: Most helpful