Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.
Text translated into the target language. If an error occurs during translation, this field might be excluded from the response.
detected_language_code
string
The BCP-47 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-10 UTC."],[[["\u003cp\u003eThe \u003ccode\u003etranslations\u003c/code\u003e field contains text translation responses without glossary application, matching the length of the \u003ccode\u003econtents\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eglossary_translations\u003c/code\u003e field contains text translation responses when a glossary is used; it matches the length of \u003ccode\u003econtents\u003c/code\u003e and can be identical to \u003ccode\u003etranslations\u003c/code\u003e if no glossary terms apply.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etranslated_text\u003c/code\u003e provides the target language translation; this field may be absent if there is an error in translation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edetected_language_code\u003c/code\u003e shows the automatically detected source language of the text if the initial request did not include a source language.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eglossary_config\u003c/code\u003e in the translation response details the glossary configurations used for that specific translation.\u003c/p\u003e\n"]]],[],null,["# TranslateTextResponse\n\nTranslation\n-----------\n\nA single translation response."]]