Skip to content

azure-ai-translation-text 2.0.0#48878

Open
jrjrguo wants to merge 5 commits intoAzure:mainfrom
jrjrguo:text-translation-v2-ga
Open

azure-ai-translation-text 2.0.0#48878
jrjrguo wants to merge 5 commits intoAzure:mainfrom
jrjrguo:text-translation-v2-ga

Conversation

@jrjrguo
Copy link
Copy Markdown
Member

@jrjrguo jrjrguo commented Apr 20, 2026

Description

Stable release of azure-ai-translation-text v2.0.0:

  • GA release of the Azure AI Translator API 2026-06-06, including translations using LLM models, adaptive custom translation, tone variant translations, and gender-specific translations.
  • Minor improvements including adding TranslationTone and TranslationGender enum types for strongly-typed tone and gender options on TranslationTarget and removing unsupported grade property.

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings April 20, 2026 20:42
@jrjrguo jrjrguo requested a review from a team as a code owner April 20, 2026 20:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates azure-ai-translation-text to the 2.0.0 GA surface aligned to a newer Text Translation REST API version, including strongly-typed tone/gender options and related documentation/test adjustments.

Changes:

  • Bumped library version to 2.0.0 and updated service/api version references to 2026-06-06.
  • Introduced TranslationTone and TranslationGender and updated TranslationTarget to use these types (removing grade).
  • Updated tests (recording matcher) and samples to reflect the new API/version behavior.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/translation/azure-ai-translation-text/tsp-location.yaml Points generation at updated swagger/spec commit.
sdk/translation/azure-ai-translation-text/src/test/java/com/azure/ai/translation/text/TextTranslationClientBase.java Adjusts test proxy matching to ignore api-version for recordings.
sdk/translation/azure-ai-translation-text/src/samples/java/com/azure/ai/translation/text/TranslateLlm.java Updates sample to use new strongly-typed tone/gender enums.
sdk/translation/azure-ai-translation-text/src/main/resources/META-INF/azure-ai-translation-text_metadata.json Updates metadata to API version 2026-06-06 and includes new model types.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/models/package-info.java Refreshes generated package description.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/models/TranslationTone.java Adds expandable string enum for tone values.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/models/TranslationGender.java Adds expandable string enum for gender values.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/models/TranslationTarget.java Switches tone/gender to enums and removes grade from model/JSON.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/implementation/models/package-info.java Refreshes generated package description.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/implementation/TextTranslationClientImpl.java Updates docs to reflect updated request fields.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationServiceVersion.java Updates service version enum to 2026-06-06.
sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationClientBuilder.java Minor structural changes; adds new constants/field (needs cleanup per comments).
sdk/translation/azure-ai-translation-text/pom.xml Bumps artifact version to 2.0.0.
sdk/translation/azure-ai-translation-text/CHANGELOG.md Adds GA release notes and breaking change notes (needs unreleased/date fixes per comments).

Comment thread sdk/translation/azure-ai-translation-text/CHANGELOG.md
Comment thread sdk/translation/azure-ai-translation-text/CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants