From 65a598be90f60b0cc14ff5ce06565f090cf6c2fa Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Wed, 28 Sep 2016 14:39:47 -0700 Subject: [PATCH] Add message ordering samples (#220) * Initial commit. * Add unit test. * Add message ordering sample. * Rename a sample. * Address comments. --- translate/quickstart.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/translate/quickstart.js b/translate/quickstart.js index 46ce2607ca7..59c34f52482 100644 --- a/translate/quickstart.js +++ b/translate/quickstart.js @@ -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 }