Skip to content

Commit

Permalink
Upgrade repo tools and regenerate READMEs. (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry authored May 10, 2017
1 parent 14ce7bd commit 5dd4636
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions packages/google-cloud-translate/samples/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# Google Translate API Node.js Samples
# Google Cloud Translation API Node.js Samples

[![Build](https://storage.googleapis.com/cloud-docs-samples-badges/GoogleCloudPlatform/nodejs-docs-samples/nodejs-docs-samples-translate.svg)]()

With the [Google Translate API](https://cloud.google.com/translate/docs), you can dynamically translate text between thousands of language pairs.
The [Cloud Translation API](https://cloud.google.com/translate/docs), can dynamically translate text between thousands of language pairs. The Cloud Translation API lets websites and programs integrate with the translation service programmatically. The Cloud Translation API is part of the larger Cloud Machine Learning API family.

## Table of Contents

Expand All @@ -18,11 +18,11 @@ With the [Google Translate API](https://cloud.google.com/translate/docs), you ca
1. Read [Prerequisites][prereq] and [How to run a sample][run] first.
1. Install dependencies:

With `npm`:
With **npm**:

npm install

With `yarn`:
With **yarn**:

yarn install

Expand All @@ -33,7 +33,6 @@ With the [Google Translate API](https://cloud.google.com/translate/docs), you ca

### Translate


View the [documentation][translate_0_docs] or the [source code][translate_0_code].

__Usage:__ `node translate.js --help`
Expand Down Expand Up @@ -70,15 +69,14 @@ For more information, see https://cloud.google.com/translate/docs

## Running the tests

1. Set the `GCLOUD_PROJECT` and `GOOGLE_APPLICATION_CREDENTIALS` environment
variables.
1. Set the **GCLOUD_PROJECT** and **GOOGLE_APPLICATION_CREDENTIALS** environment variables.

1. Run the tests:

With `npm`:
With **npm**:

npm test

With `yarn`:
With **yarn**:

yarn test
2 changes: 1 addition & 1 deletion packages/google-cloud-translate/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"yargs": "7.1.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.7",
"@google-cloud/nodejs-repo-tools": "1.4.13",
"ava": "0.19.1",
"proxyquire": "1.7.11",
"sinon": "2.1.0"
Expand Down

0 comments on commit 5dd4636

Please sign in to comment.