Open
Conversation
Contributor
There was a problem hiding this comment.
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.0and updated service/api version references to2026-06-06. - Introduced
TranslationToneandTranslationGenderand updatedTranslationTargetto use these types (removinggrade). - 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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stable release of azure-ai-translation-text v2.0.0:
TranslationToneandTranslationGenderenum types for strongly-typed tone and gender options onTranslationTargetand removing unsupportedgradeproperty.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:
General Guidelines and Best Practices
Testing Guidelines