2.0.0 (2026-08-01)
Features Added
- Added support for the
2026-03-01service API version, which is now the default. - Added image translation support: the
translate_text_within_imagekeyword onbegin_translation
for batch requests, and atranslate_text_within_imagekeyword onSingleDocumentTranslationClient.translate
for single document requests. When enabled, each document's status also reports image scan usage. - Added the
deployment_nameproperty toTranslationTargetand thedeployment_namekeyword to
begin_translationto specify the deployment name of the custom translation model for a batch
translation request. - Added the
deployment_namekeyword toSingleDocumentTranslationClient.translatefor single
document translation requests. - Added the
deployment_nameproperty toDocumentStatus, exposing the deployment name of the
custom translation model used for the translation. - Added image scan reporting to
DocumentStatus:image_characters_detected,images_charged,
total_image_scans_succeeded, andtotal_image_scans_failed. - Added image scan totals to
TranslationStatusSummary:total_image_scans_succeeded,
total_image_scans_failed, andtotal_images_charged. - Added the
BatchOptionsmodel for specifying batch translation options.
Breaking Changes
- Changed the default service API version from
2024-05-01to2026-03-01. To keep the previous
behavior, passapi_version="2024-05-01"when constructing the client. - Models are no longer re-exported from the top-level
azure.ai.translation.documentnamespace and
must now be imported fromazure.ai.translation.document.models. This affectsTranslationGlossary,
TranslationTarget,DocumentTranslationInput,TranslationStatus,DocumentStatus,
DocumentTranslationError,DocumentTranslationFileFormat, andStorageInputType. For example,
replacefrom azure.ai.translation.document import TranslationStatuswith
from azure.ai.translation.document.models import TranslationStatus. The clients
(DocumentTranslationClient,SingleDocumentTranslationClient),DocumentTranslationApiVersion,
andDocumentTranslationLROPollerremain available at the top level.
Other Changes
- This version and all future versions will require Python 3.9+. Python 3.8 is no longer supported.
- Bumped the minimum required
azure-coreversion from1.30.0to1.37.0.