3
3
Google Translation API Python Samples
4
4
===============================================================================
5
5
6
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
7
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/README.rst
8
+
9
+
6
10
This directory contains samples for Google Translation API. With `Google Translation API `, you can dynamically translate text between thousands of language pairs.
7
11
8
12
@@ -54,6 +58,10 @@ Samples
54
58
Quickstart
55
59
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
56
60
61
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
62
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/quickstart.py;translate/cloud-client/README.rst
63
+
64
+
57
65
58
66
59
67
To run this sample:
@@ -66,6 +74,10 @@ To run this sample:
66
74
Snippets
67
75
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
68
76
77
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
78
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/snippets.py;translate/cloud-client/README.rst
79
+
80
+
69
81
70
82
71
83
To run this sample:
@@ -77,13 +89,13 @@ To run this sample:
77
89
usage: snippets.py [-h]
78
90
{detect-language,list-languages,list-languages-with-target,translate-text}
79
91
...
80
-
92
+
81
93
This application demonstrates how to perform basic operations with the
82
94
Google Cloud Translate API
83
-
95
+
84
96
For more information, the documentation at
85
97
https://cloud.google.com/translate/docs.
86
-
98
+
87
99
positional arguments:
88
100
{detect-language,list-languages,list-languages-with-target,translate-text}
89
101
detect-language Detects the text' s language.
@@ -97,13 +109,14 @@ To run this sample:
97
109
be an ISO 639-1 language code. See
98
110
https://g.co/cloud/translate/v2/translate-
99
111
reference#supported_languages
100
-
112
+
101
113
optional arguments:
102
114
-h, --help show this help message and exit
103
115
104
116
105
117
106
118
119
+
107
120
The client library
108
121
-------------------------------------------------------------------------------
109
122
0 commit comments