Skip to content

Commit

Permalink
[Text Translation] Rename to query parameter in Python (#29194)
Browse files Browse the repository at this point in the history
* [Text Translation] Rename to query parameter in Python

* Revert suggested from

---------

Co-authored-by: Michal Materna <[email protected]>
  • Loading branch information
MikeyMCZ and Michal Materna authored May 22, 2024
1 parent 1d994b3 commit 5656333
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions specification/translation/Azure.AI.TextTranslation/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ using Azure.ClientGenerator.Core;
"TargetLanguage",
"java"
);
@@clientName(TextTranslation.DictionaryLookupParameters.to,
"to_language",
"python"
);

@@clientName(TextTranslation.DictionaryExamplesParameters.from,
"SourceLanguage",
Expand All @@ -69,6 +73,10 @@ using Azure.ClientGenerator.Core;
"TargetLanguage",
"java"
);
@@clientName(TextTranslation.DictionaryExamplesParameters.to,
"to_language",
"python"
);

@@clientName(TextTranslation.TranslationLanguage.dir,
"Directionality",
Expand Down Expand Up @@ -148,6 +156,7 @@ using Azure.ClientGenerator.Core;
"dotnet"
);
@@clientName(TextTranslation.TranslateParameters.to, "TargetLanguages", "java");
@@clientName(TextTranslation.TranslateParameters.to, "to_language", "python");

@@clientName(TextTranslation.TranslateParameters.fromScript,
"SourceLanguageScript",
Expand Down Expand Up @@ -175,10 +184,6 @@ using Azure.ClientGenerator.Core;
"SuggestedSourceLanguage",
"java"
);
@@clientName(TextTranslation.TranslateParameters.suggestedFrom,
"from_language",
"python"
);

@@clientName(TextTranslation.TranslatedTextAlignment.proj,
"Projections",
Expand Down

0 comments on commit 5656333

Please sign in to comment.