3.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
TranslateTextWithinImageproperty onBatchOptionsfor batch requests, and atranslateTextWithinImageparameter onSingleDocumentTranslationClient.TranslateandTranslateAsyncfor single document requests. - Added
StartTranslationandStartTranslationAsyncconvenience overloads onDocumentTranslationClientthat take anIEnumerable<DocumentTranslationInput>plus atranslateTextWithinImageflag, so batch image translation can be enabled without constructing aTranslationBatch/BatchOptions. - Added image scan reporting to
DocumentStatusResult:ImageCharactersDetected,ImagesCharged,TotalImageScansSucceeded, andTotalImageScansFailed. - Added the
DeploymentNameproperty toTranslationTargetto specify the deployment name of the custom translation model for a batch translation request. - Added the
DeploymentNameproperty toDocumentStatusResult, exposing the deployment name of the custom translation model used for the translation. - Added the
deploymentNameparameter toSingleDocumentTranslationClient.TranslateandTranslateAsyncfor single document translation requests. - Added dependency-injection and hosting support via
DocumentTranslationClientHostExtensions,SingleDocumentTranslationClientHostExtensions, theDocumentTranslationClientSettingsandSingleDocumentTranslationClientSettingstypes, and new constructors that accept these settings.
Breaking Changes
- Changed the default
DocumentTranslationClientOptions.ServiceVersionfromV2024_05_01toV2026_03_01, and removed the interimV2024_11_01_PreviewandV2025_12_01_Previewpreview service versions. Use the stableV2026_03_01version instead. - Added
deploymentNameandtranslateTextWithinImageparameters (positioned aftercategory) to theSingleDocumentTranslationClient.TranslateandTranslateAsyncoverloads. This is a binary-breaking change for existing callers. - Made the format type parameter required (
FileFormatType fileFormatTypeinstead ofFileFormatType? type) onDocumentTranslationClient.GetSupportedFormatsandGetSupportedFormatsAsync, since the2026-03-01service version requires it. SpecifyFileFormatType.DocumentorFileFormatType.Glossary. The previous nullable overload is retained for binary compatibility but now throwsNotSupportedExceptionwhen called without a type.
Other Changes
- Regenerated the library with the latest Azure code generator, adding the
AzureAITranslationDocumentContextmodel-reader-writer context and additional serialization conversion operators on model types.