Skip to content

Commit ab5c31b

Browse files
translate: promote to GA
1 parent 21ce94f commit ab5c31b

2 files changed

Lines changed: 61 additions & 61 deletions

File tree

README.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ This client supports the following Google Cloud Platform services at a [General
1414

1515
* [Cloud Datastore](#cloud-datastore-ga) (GA)
1616
* [Cloud Storage](#cloud-storage-ga) (GA)
17+
* [Cloud Translation API](#cloud-translation-api-ga) (GA)
1718
* [Google Stackdriver Logging](#google-stackdriver-logging-ga) (GA)
1819

1920
This client supports the following Google Cloud Platform services at a [Beta](#versioning) quality level:
2021

2122
* [Cloud Natural Language](#cloud-natural-language-beta) (Beta)
22-
* [Cloud Translation API](#cloud-translation-api-beta) (Beta)
2323
* [Cloud Vision](#cloud-vision-beta) (Beta)
2424
* [Google BigQuery](#google-bigquery-beta) (Beta)
2525

@@ -280,6 +280,64 @@ localReadStream.pipe(remoteWriteStream);
280280
```
281281

282282

283+
## Cloud Translation API (GA)
284+
285+
- [API Documentation][gcloud-translate-docs]
286+
- [Official Documentation][cloud-translate-docs]
287+
288+
#### Using the Google Translate API module
289+
290+
```
291+
$ npm install --save @google-cloud/translate
292+
```
293+
294+
```js
295+
var translate = require('@google-cloud/translate');
296+
```
297+
298+
#### Preview
299+
300+
```js
301+
// Authenticating on a per-API-basis. You don't need to do this if you auth on a
302+
// global basis (see Authentication section above).
303+
304+
var translateClient = translate({
305+
projectId: 'grape-spaceship-123',
306+
keyFilename: '/path/to/keyfile.json'
307+
});
308+
309+
// Translate a string of text.
310+
translateClient.translate('Hello', 'es', function(err, translation) {
311+
if (!err) {
312+
// translation = 'Hola'
313+
}
314+
});
315+
316+
// Detect a language from a string of text.
317+
translateClient.detect('Hello', function(err, results) {
318+
if (!err) {
319+
// results = {
320+
// language: 'en',
321+
// confidence: 1,
322+
// input: 'Hello'
323+
// }
324+
}
325+
});
326+
327+
// Get a list of supported languages.
328+
translateClient.getLanguages(function(err, languages) {
329+
if (!err) {
330+
// languages = [
331+
// 'af',
332+
// 'ar',
333+
// 'az',
334+
// ...
335+
// ]
336+
}
337+
});
338+
```
339+
340+
283341
## Google Stackdriver Logging (GA)
284342

285343
- [API Documentation][gcloud-logging-docs]
@@ -472,64 +530,6 @@ document.annotate(function(err, annotation) {
472530
```
473531

474532

475-
## Cloud Translation API (Beta)
476-
477-
- [API Documentation][gcloud-translate-docs]
478-
- [Official Documentation][cloud-translate-docs]
479-
480-
#### Using the Google Translate API module
481-
482-
```
483-
$ npm install --save @google-cloud/translate
484-
```
485-
486-
```js
487-
var translate = require('@google-cloud/translate');
488-
```
489-
490-
#### Preview
491-
492-
```js
493-
// Authenticating on a per-API-basis. You don't need to do this if you auth on a
494-
// global basis (see Authentication section above).
495-
496-
var translateClient = translate({
497-
projectId: 'grape-spaceship-123',
498-
keyFilename: '/path/to/keyfile.json'
499-
});
500-
501-
// Translate a string of text.
502-
translateClient.translate('Hello', 'es', function(err, translation) {
503-
if (!err) {
504-
// translation = 'Hola'
505-
}
506-
});
507-
508-
// Detect a language from a string of text.
509-
translateClient.detect('Hello', function(err, results) {
510-
if (!err) {
511-
// results = {
512-
// language: 'en',
513-
// confidence: 1,
514-
// input: 'Hello'
515-
// }
516-
}
517-
});
518-
519-
// Get a list of supported languages.
520-
translateClient.getLanguages(function(err, languages) {
521-
if (!err) {
522-
// languages = [
523-
// 'af',
524-
// 'ar',
525-
// 'az',
526-
// ...
527-
// ]
528-
}
529-
});
530-
```
531-
532-
533533
## Cloud Vision (Beta)
534534

535535
- [API Documentation][gcloud-vision-docs]
@@ -795,7 +795,7 @@ var nsRecord = zone.record('ns', {
795795
data: 'ns-cloud1.googledomains.com.'
796796
});
797797

798-
zone.addRecords([nsRecord], function(err, change) {});
798+
zone.addRecords([nsRecord], function(err, change) {});
799799

800800
// Create a zonefile from the records in your zone.
801801
zone.export('/zonefile.zone', function(err) {});

packages/translate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @google-cloud/translate ([Beta][versioning])
1+
# @google-cloud/translate ([GA][versioning])
22
> Cloud Translation API Client Library for Node.js
33
44
*Looking for more Google APIs than just Translation? You might want to check out [`google-cloud`][google-cloud].*

0 commit comments

Comments
 (0)