Azure-docs: A string enclosed by "<" and ">" are not translated. Is it possible to have it documented?

Created on 13 Sep 2020  ·  5Comments  ·  Source: MicrosoftDocs/azure-docs

[Enter feedback here]
A string enclosed by "<" and ">" are not translated, such as "\

- example

PS C:\> $APIKey ='xxxxx'
PS C:\> $requestUri = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&to=ja&textType=plain&category=general"
PS C:\> ?
PS C:\> $requestHeader = @{
>> ? 'Content-type'='application/json'
>> ? 'Ocp-Apim-Subscription-Key' = $APIKey
>> }
PS C:\>
PS C:\> $postText = "[{ ""Text"":""I drank a <coffee> yesterday.""}]"
PS C:\> $postBody = [Text.Encoding]::UTF8.GetBytes($postText)
PS C:\> Invoke-RestMethod -Method POST -Uri $requestUri -Headers $requestHeader -Body $postBody

translations
------------
{@{text=昨日<coffee>を飲んだ。; to=ja}}

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author cognitive-servicesvc doc-enhancement translator-texsubsvc triaged

All 5 comments

@damochiz Thanks for the feedback. We are investigating the issue and will update you shortly.

Thanks for the feedback. I have assigned this to content author for updating the document as appropriate.@swmachan Could you please help on updating the document.
We could see the string enclosed by "<" and ">" are not translated as shown below.

image

Added this to our backlog for doc improvements. Thanks for the feedback @damochiz

please-close

@damochiz - Thanks for reporting this. This is actually a bug in the service that our engineering team is now investigating.

Only text within the <span translate="no"></span> should be ignored by the service.

reassign:@krishna-doss-mohan - Can update this ticket once a patch is applied.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Favna picture Favna  ·  3Comments

spottedmahn picture spottedmahn  ·  3Comments

monteledwards picture monteledwards  ·  3Comments

AronT-TLV picture AronT-TLV  ·  3Comments

paulmarshall picture paulmarshall  ·  3Comments