Skip to content

Commit ff88db1

Browse files
jmdobryAce Nassri
authored and
Ace Nassri
committed
Add message ordering samples (#220)
* Initial commit. * Add unit test. * Add message ordering sample. * Rename a sample. * Address comments.
1 parent 3f260ea commit ff88db1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

translate/quickstart.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515

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

2322
// Translates some text into Russian
24-
translate.translate('Hello, world!', 'ru', (err, translation, apiResponse) => {
23+
translate.translate('Hello, world!', 'ru', (err, translation) => {
2524
if (!err) {
2625
// The text was translated successfully
2726
}

0 commit comments

Comments
 (0)