English Text is Always Getting Translated Despite Not Matching from Parameter in Request URL

Mostafa Abdelmaksoud 0 Reputation points
2025-10-01T11:48:53.92+00:00

Hello, I following the Quickstart: Azure AI Translator REST APIs tutorial to test out the translation service, however I am seeing some strange behaviour regarding English text. When the text I send off to be translated is in English and the from parameter in my request url does not match the English Language code, the returned text is always translated

        string route = "/translate?api-version=3.0&from=fr&to=sq";
        string textToTranslate = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";

Response:

[{"translations":[{"text":"Lorem Ipsum është thjesht tekst fik i industrisë së shtypit dhe shtypit. Lorem Ipsum ka qenë teksti standard i industrisë që nga vitet 1500, kur një printer i panjohur mori një galeri të shkronjave dhe e përgojoi atë për të bërë një libër ekzemplar të tipit. Ajo ka mbijetuar jo vetëm pesë shekuj, por edhe kërcimin në shtypshkrografinë elektronike, duke mbetur thelbësisht e pandryshuar. Ai u popullarizua në vitet 1960 me lëshimin e fletëve Letraset që përmbajnë pasazhe Lorem Ipsum, dhe kohët e fundit me softuerin e botimit desktop si Aldus PageMaker duke përfshirë versionet e Lorem Ipsum.","to":"sq"}]}]

However, in any other scenario where the text to be translated does not match the from parameter in the request url, the returned text is not translated. Instead, the returned text is just the exact same text that is sent in the request

In this Request, I am sending dutch text to be translated while the from parameter indicates the French language code. Notice how the returned text is the exact same

        string route = "/translate?api-version=3.0&from=fr&to=sq";
        string textToTranslate = "Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.";

Response

[{"translations":[{"text":"Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.","to":"sq"}]}]


Why is the English text always getting translated? I would not want the text to get translated if it doesnt match the source language. What can I do to make sure that happens with English?

Azure Translator in Foundry Tools

1 answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.