所有 Cloud Translation API 代码示例

This page contains code samples for Cloud Translation. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Create a glossary (Advanced edition only)

Create a glossary.

Delete a glossary (Advanced edition only)

Delete a glossary.

Detect the language (Advanced edition)

Detect the language of a text string.

Get a glossary (Advanced edition only)

Retrieve a specified glossary.

Get supported languages (Advanced edition)

Retrieve a list of supported language codes.

Get supported languages for target languages (Advanced edition)

Retrieve a list of supported language codes with target language names.

List glossaries (Advanced edition only)

List all the glossaries for a given project.

Translate strings (Basic edition)

Demonstrates translating strings by using Cloud Translation - Basic (v2).

View in documentation

Translate text (Advanced edition)

Translate input text by using Cloud Translation - Advanced (v3).

Translate text in batches (Advanced edition only)

Translate a large volume of text.

View in documentation

Translate text with a glossary (Advanced edition only)

Translate input text with a glossary.

Translate text with glossary and model in batches (Advanced edition only)

Translate a large volume of text with a glossary and model.

View in documentation

Translate text with glossary in batches (Advanced edition only)

Translate a large volume of text with glossary

View in documentation

Translate text with model (Advanced edition only)

Translate input text with model.

View in documentation

Translate text with model in batches (Advanced edition only)

Translate a large volume of text with model.

View in documentation