github Azure/azure-sdk-for-net Azure.AI.Translation.Document_3.0.0

4 hours ago

3.0.0 (2026-08-01)

Features Added

  • Added support for the 2026-03-01 service API version, which is now the default.
  • Added image translation support: the TranslateTextWithinImage property on BatchOptions for batch requests, and a translateTextWithinImage parameter on SingleDocumentTranslationClient.Translate and TranslateAsync for single document requests.
  • Added StartTranslation and StartTranslationAsync convenience overloads on DocumentTranslationClient that take an IEnumerable<DocumentTranslationInput> plus a translateTextWithinImage flag, so batch image translation can be enabled without constructing a TranslationBatch/BatchOptions.
  • Added image scan reporting to DocumentStatusResult: ImageCharactersDetected, ImagesCharged, TotalImageScansSucceeded, and TotalImageScansFailed.
  • Added the DeploymentName property to TranslationTarget to specify the deployment name of the custom translation model for a batch translation request.
  • Added the DeploymentName property to DocumentStatusResult, exposing the deployment name of the custom translation model used for the translation.
  • Added the deploymentName parameter to SingleDocumentTranslationClient.Translate and TranslateAsync for single document translation requests.
  • Added dependency-injection and hosting support via DocumentTranslationClientHostExtensions, SingleDocumentTranslationClientHostExtensions, the DocumentTranslationClientSettings and SingleDocumentTranslationClientSettings types, and new constructors that accept these settings.

Breaking Changes

  • Changed the default DocumentTranslationClientOptions.ServiceVersion from V2024_05_01 to V2026_03_01, and removed the interim V2024_11_01_Preview and V2025_12_01_Preview preview service versions. Use the stable V2026_03_01 version instead.
  • Added deploymentName and translateTextWithinImage parameters (positioned after category) to the SingleDocumentTranslationClient.Translate and TranslateAsync overloads. This is a binary-breaking change for existing callers.
  • Made the format type parameter required (FileFormatType fileFormatType instead of FileFormatType? type) on DocumentTranslationClient.GetSupportedFormats and GetSupportedFormatsAsync, since the 2026-03-01 service version requires it. Specify FileFormatType.Document or FileFormatType.Glossary. The previous nullable overload is retained for binary compatibility but now throws NotSupportedException when called without a type.

Other Changes

  • Regenerated the library with the latest Azure code generator, adding the AzureAITranslationDocumentContext model-reader-writer context and additional serialization conversion operators on model types.

Don't miss a new azure-sdk-for-net release

NewReleases is sending notifications on new releases.