Skip to content

Commit

Permalink
Add message ordering samples (#220)
Browse files Browse the repository at this point in the history
* Initial commit.

* Add unit test.

* Add message ordering sample.

* Rename a sample.

* Address comments.
  • Loading branch information
jmdobry authored and Ace Nassri committed Nov 17, 2022
1 parent a601100 commit 65a598b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions translate/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@

// [START translate_quickstart]
// Imports and instantiates the Google Cloud client library
// for the Google Translate API
const translate = require('@google-cloud/translate')({
key: 'YOUR_API_KEY'
});

// Translates some text into Russian
translate.translate('Hello, world!', 'ru', (err, translation, apiResponse) => {
translate.translate('Hello, world!', 'ru', (err, translation) => {
if (!err) {
// The text was translated successfully
}
Expand Down

0 comments on commit 65a598b

Please sign in to comment.