Skip to content

Commit

Permalink
Added "Open in Cloud Shell" buttons to README files [(#1254)](GoogleC…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelawyu authored and danoscarmike committed Jul 31, 2020
1 parent 458584a commit 93390fc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 17 additions & 4 deletions packages/google-cloud-translate/samples/snippets/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Google Translation API Python Samples
===============================================================================

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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


This directory contains samples for Google Translation API. With `Google Translation API`, you can dynamically translate text between thousands of language pairs.


Expand Down Expand Up @@ -54,6 +58,10 @@ Samples
Quickstart
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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




To run this sample:
Expand All @@ -66,6 +74,10 @@ To run this sample:
Snippets
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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




To run this sample:
Expand All @@ -77,13 +89,13 @@ To run this sample:
usage: snippets.py [-h]
{detect-language,list-languages,list-languages-with-target,translate-text}
...
This application demonstrates how to perform basic operations with the
Google Cloud Translate API
For more information, the documentation at
https://cloud.google.com/translate/docs.
positional arguments:
{detect-language,list-languages,list-languages-with-target,translate-text}
detect-language Detects the text's language.
Expand All @@ -97,13 +109,14 @@ To run this sample:
be an ISO 639-1 language code. See
https://g.co/cloud/translate/v2/translate-
reference#supported_languages
optional arguments:
-h, --help show this help message and exit
The client library
-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ samples:
show_help: true

cloud_client_library: true

folder: translate/cloud-client

0 comments on commit 93390fc

Please sign in to comment.