Skip to content

Commit 3dec069

Browse files
docs: [Translate] minor formatting (#8393)
* docs: Update hyperlink to the supported languages documentation page PiperOrigin-RevId: 773858401 Source-Link: googleapis/googleapis@8b26dd3 Source-Link: googleapis/googleapis-gen@145fb3f Copy-Tag: eyJwIjoiVHJhbnNsYXRlLy5Pd2xCb3QueWFtbCIsImgiOiIxNDVmYjNmNDFhNWQ3NDNlODFjNTg5MmYwNmQyZjE5MmQ5ODM0ZDc1In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: minor formatting PiperOrigin-RevId: 775127576 Source-Link: googleapis/googleapis@af2ae7d Source-Link: googleapis/googleapis-gen@65aa991 Copy-Tag: eyJwIjoiVHJhbnNsYXRlLy5Pd2xCb3QueWFtbCIsImgiOiI2NWFhOTkxZmMzYzdmZjkwZGE5YjBkM2Y0Yzg4ZmQ2Mjg1NTQyZDY5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0cab936 commit 3dec069

13 files changed

Lines changed: 136 additions & 71 deletions
-3 Bytes
Binary file not shown.
-3 Bytes
Binary file not shown.

Translate/metadata/V3/Common.php

-3 Bytes
Binary file not shown.
-3 Bytes
Binary file not shown.

Translate/samples/V3/TranslationServiceClient/batch_translate_document.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
* example, "en-US" or "sr-Latn". Supported language codes are listed in
5656
* [Language Support](https://cloud.google.com/translate/docs/languages).
5757
* @param string $targetLanguageCodesElement The ISO-639 language code to use for translation of the input
58-
* document. Specify up to 10 language codes here.
58+
* document. Specify up to 10 language codes here. Supported language codes
59+
* are listed in [Language
60+
* Support](https://cloud.google.com/translate/docs/languages).
5961
*/
6062
function batch_translate_document_sample(
6163
string $formattedParent,

Translate/samples/V3/TranslationServiceClient/batch_translate_text.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@
5151
* the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
5252
* error is returned. Please see
5353
* {@see TranslationServiceClient::locationName()} for help formatting this field.
54-
* @param string $sourceLanguageCode Source language code.
55-
* @param string $targetLanguageCodesElement Specify up to 10 language codes here.
54+
* @param string $sourceLanguageCode Source language code. Supported language codes are listed in
55+
* [Language
56+
* Support](https://cloud.google.com/translate/docs/languages).
57+
* @param string $targetLanguageCodesElement Specify up to 10 language codes here. Supported language codes
58+
* are listed in [Language
59+
* Support](https://cloud.google.com/translate/docs/languages).
5660
*/
5761
function batch_translate_text_sample(
5862
string $formattedParent,

Translate/samples/V3/TranslationServiceClient/translate_document.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
* Models and glossaries must be within the same region (have the same
4646
* location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
4747
* @param string $targetLanguageCode The ISO-639 language code to use for translation of the input
48-
* document, set to one of the language codes listed in Language Support.
48+
* document, set to one of the language codes listed in [Language
49+
* Support](https://cloud.google.com/translate/docs/languages).
4950
*/
5051
function translate_document_sample(string $parent, string $targetLanguageCode): void
5152
{

Translate/samples/V3/TranslationServiceClient/translate_text.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
* We recommend the total content be less than 30,000 codepoints. The max
3636
* length of this field is 1024. Use BatchTranslateText for larger text.
3737
* @param string $targetLanguageCode The ISO-639 language code to use for translation of the input
38-
* text, set to one of the language codes listed in Language Support.
38+
* text, set to one of the language codes listed in [Language
39+
* Support](https://cloud.google.com/translate/docs/languages).
3940
* @param string $formattedParent Project or location to make a call. Must refer to a caller's
4041
* project.
4142
*

Translate/src/V3/BatchTranslateDocumentRequest.php

Lines changed: 15 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Translate/src/V3/BatchTranslateTextRequest.php

Lines changed: 24 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)