Azure / Azure/azure-sdk-for-python

detected_language attribute for DocumentStatus

Open
#38,886 3 comments 0 reactions 1 assignee Assigned to @Han-msft View on GitHub
Client Cognitive - Translator customer-reported feature-request needs-team-attention Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**Is your feature request related to a problem? Please describe.**
When using the [TextTranslationClient Class](https://learn.microsoft.com/en-us/python/api/azure-ai-translation-text/azure.ai.translation.text.texttranslationclient?view=azure-python-preview#azure-ai-translation-text-texttranslationclient-translate) to translate text, I can get the detected_language attribute from the [TranslatedTextItem](https://learn.microsoft.com/en-us/python/api/azure-ai-translation-text/azure.ai.translation.text.models.translatedtextitem?view=azure-python-preview#azure-ai-translation-text-models-translatedtextitem-detected-language) object, but the same is not possible for the [DocumentStatus](https://learn.microsoft.com/en-us/python/api/azure-ai-translation-document/azure.ai.translation.document.documentstatus?view=azure-python-preview) of the [DocumentTranslationClient](https://learn.microsoft.com/en-us/python/api/azure-ai-translation-document/azure.ai.translation.document.documenttranslationclient?view=azure-python-preview#azure-ai-translation-document-documenttranslationclient-get-translation-status). This is problematic as my users would like to know the language their documents was translated from.

**Describe the solution you'd like**
A detected_language attribute on the DocumentStatus class.

**Describe alternatives you've considered**
Any way to get this information without also translating documents or part of them with TextTranslationClient would work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.