Skip to content

Commit

Permalink
Update READMEs to fix numbering and add git clone [(#1464)](GoogleClo…
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyn authored and danoscarmike committed Jul 31, 2020
1 parent 4f4b2b7 commit f0954bc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/google-cloud-translate/samples/snippets/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ credentials for applications.
Install Dependencies
++++++++++++++++++++

#. Clone python-docs-samples and change directory to the sample directory you want to use.

.. code-block:: bash
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.

.. _Python Development Environment Setup Guide:
https://cloud.google.com/python/setup
.. _Python Development Environment Setup Guide:
https://cloud.google.com/python/setup

#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.

Expand Down Expand Up @@ -103,9 +109,8 @@ To run this sample:
list-languages-with-target
Lists all available languages and localizes them to
the target language. Target must be an ISO 639-1
language code. See
https://g.co/cloud/translate/v2/translate-
reference#supported_languages
language code. See https://g.co/cloud/translate/v2
/translate-reference#supported_languages
translate-text Translates text into the target language. Target must
be an ISO 639-1 language code. See
https://g.co/cloud/translate/v2/translate-
Expand Down

0 comments on commit f0954bc

Please sign in to comment.