Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/translate

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/translate - npm Package Compare versions

Comparing version 4.1.3 to 4.2.0

build/protos/protos.d.ts

70

build/src/v3beta1/doc/google/cloud/translation/v3beta1/doc_translation_service.js

@@ -62,8 +62,14 @@ // Copyright 2019 Google LLC

* @property {string} parent
* Required. Location to make a regional or global call.
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
* Format: `projects/{project-id}` or
* `projects/{project-id}/locations/{location-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*
* Non-global location is required for requests using AutoML models or
* custom glossaries.
*
* Models and glossaries must be within the same region (have same

@@ -98,2 +104,12 @@ * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.

*
* @property {Object.<string, string>} labels
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
*
* @typedef TranslateTextRequest

@@ -165,7 +181,10 @@ * @memberof google.cloud.translation.v3beta1

* @property {string} parent
* Required. Location to make a regional or global call.
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
* Format: `projects/{project-id}/locations/{location-id}` or
* `projects/{project-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*

@@ -193,2 +212,12 @@ * Only models within the same region (has same location-id) can be used.

*
* @property {Object.<string, string>} labels
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
*
* @typedef DetectLanguageRequest

@@ -241,8 +270,13 @@ * @memberof google.cloud.translation.v3beta1

* @property {string} parent
* Required. Location to make a regional or global call.
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
* Format: `projects/{project-id}` or
* `projects/{project-id}/locations/{location-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*
* Non-global location is required for AutoML models.
*
* Only models within the same region (have same location-id) can be used,

@@ -379,8 +413,8 @@ * otherwise an INVALID_ARGUMENT (400) error is returned.

/**
* The Google Cloud Storage location for the output content
* The Google Cloud Storage location for the output content.
*
* @property {string} outputUriPrefix
* Required. There must be no files under 'output_uri_prefix'.
* 'output_uri_prefix' must end with "/", otherwise an INVALID_ARGUMENT (400)
* error is returned..
* 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
* INVALID_ARGUMENT (400) error is returned.
*

@@ -480,3 +514,3 @@ * @typedef GcsDestination

* @property {string} parent
* Required. Location to make a regional call.
* Required. Location to make a call. Must refer to a caller's project.
*

@@ -534,2 +568,12 @@ * Format: `projects/{project-id}/locations/{location-id}`.

*
* @property {Object.<string, string>} labels
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
*
* @typedef BatchTranslateTextRequest

@@ -536,0 +580,0 @@ * @memberof google.cloud.translation.v3beta1

10

build/src/v3beta1/doc/google/protobuf/doc_timestamp.js

@@ -92,7 +92,9 @@ // Copyright 2019 Google LLC

* In JavaScript, one can convert a Date object to this format using the
* standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
* standard
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
* method. In Python, a standard `datetime.datetime` object can be converted
* to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
* with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
* can use the Joda Time's [`ISODateTimeFormat.dateTime()`](https://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D) to obtain a formatter capable of generating timestamps in this format.
* to this format using
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](https://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D) to obtain a formatter capable of generating timestamps in this format.
*

@@ -99,0 +101,0 @@ * @property {number} seconds

@@ -60,3 +60,3 @@ {

"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"

@@ -63,0 +63,0 @@ }

@@ -20,3 +20,2 @@ // Copyright 2019 Google LLC

const path = require('path');
const protobuf = require('protobufjs');

@@ -63,2 +62,12 @@ const VERSION = require('../../../package.json').version;

if (global.isBrowser) {
// If we're in browser, we use gRPC fallback.
opts.fallback = true;
}
// If we are in browser, we are already using fallback because of the
// "browser" field in package.json.
// But if we were explicitly requested to use fallback, let's do it now.
const gaxModule = !global.isBrowser && opts.fallback ? gax.fallback : gax;
const servicePath =

@@ -80,3 +89,3 @@ opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;

opts.scopes = this.constructor.scopes;
const gaxGrpc = new gax.GrpcClient(opts);
const gaxGrpc = new gaxModule.GrpcClient(opts);

@@ -87,8 +96,14 @@ // Save the auth object to the client, for use by other methods.

// Determine the client header string.
const clientHeader = [
`gl-node/${process.version}`,
`grpc/${gaxGrpc.grpcVersion}`,
`gax/${gax.version}`,
`gapic/${VERSION}`,
];
const clientHeader = [];
if (typeof process !== 'undefined' && 'versions' in process) {
clientHeader.push(`gl-node/${process.versions.node}`);
}
clientHeader.push(`gax/${gaxModule.version}`);
if (opts.fallback) {
clientHeader.push(`gl-web/${gaxModule.version}`);
} else {
clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`);
}
clientHeader.push(`gapic/${VERSION}`);
if (opts.libName && opts.libVersion) {

@@ -99,5 +114,14 @@ clientHeader.push(`${opts.libName}/${opts.libVersion}`);

// Load the applicable protos.
// For Node.js, pass the path to JSON proto file.
// For browsers, pass the JSON content.
const nodejsProtoPath = path.join(
__dirname,
'..',
'..',
'protos',
'protos.json'
);
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/translate/v3beta1/translation_service.proto']
opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath
);

@@ -109,6 +133,6 @@

this._pathTemplates = {
glossaryPathTemplate: new gax.PathTemplate(
glossaryPathTemplate: new gaxModule.PathTemplate(
'projects/{project}/locations/{location}/glossaries/{glossary}'
),
locationPathTemplate: new gax.PathTemplate(
locationPathTemplate: new gaxModule.PathTemplate(
'projects/{project}/locations/{location}'

@@ -122,3 +146,3 @@ ),

this._descriptors.page = {
listGlossaries: new gax.PageDescriptor(
listGlossaries: new gaxModule.PageDescriptor(
'pageToken',

@@ -129,18 +153,11 @@ 'nextPageToken',

};
let protoFilesRoot = new gax.GoogleProtoFilesRoot();
protoFilesRoot = protobuf.loadSync(
path.join(
__dirname,
'..',
'..',
'protos',
'google/cloud/translate/v3beta1/translation_service.proto'
),
protoFilesRoot
);
const protoFilesRoot = opts.fallback
? gaxModule.protobuf.Root.fromJSON(require('../../protos/protos.json'))
: gaxModule.protobuf.loadSync(nodejsProtoPath);
// This API contains "long-running operations", which return a
// an Operation object that allows for tracking of the operation,
// rather than holding a request open.
this.operationsClient = new gax.lro({
this.operationsClient = new gaxModule.lro({
auth: gaxGrpc.auth,

@@ -170,3 +187,3 @@ grpc: gaxGrpc.grpc,

this._descriptors.longrunning = {
batchTranslateText: new gax.LongrunningDescriptor(
batchTranslateText: new gaxModule.LongrunningDescriptor(
this.operationsClient,

@@ -176,3 +193,3 @@ batchTranslateTextResponse.decode.bind(batchTranslateTextResponse),

),
createGlossary: new gax.LongrunningDescriptor(
createGlossary: new gaxModule.LongrunningDescriptor(
this.operationsClient,

@@ -182,3 +199,3 @@ createGlossaryResponse.decode.bind(createGlossaryResponse),

),
deleteGlossary: new gax.LongrunningDescriptor(
deleteGlossary: new gaxModule.LongrunningDescriptor(
this.operationsClient,

@@ -206,3 +223,7 @@ deleteGlossaryResponse.decode.bind(deleteGlossaryResponse),

const translationServiceStub = gaxGrpc.createStub(
protos.google.cloud.translation.v3beta1.TranslationService,
opts.fallback
? protos.lookupService(
'google.cloud.translation.v3beta1.TranslationService'
)
: protos.google.cloud.translation.v3beta1.TranslationService,
opts

@@ -224,14 +245,12 @@ );

for (const methodName of translationServiceStubMethods) {
this._innerApiCalls[methodName] = gax.createApiCall(
translationServiceStub.then(
stub =>
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
const innerCallPromise = translationServiceStub.then(
stub => (...args) => {
return stub[methodName].apply(stub, args);
},
err => () => {
throw err;
}
);
this._innerApiCalls[methodName] = gaxModule.createApiCall(
innerCallPromise,
defaults[methodName],

@@ -302,2 +321,17 @@ this._descriptors.page[methodName] ||

* text, set to one of the language codes listed in Language Support.
* @param {string} request.parent
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}` or
* `projects/{project-id}/locations/{location-id}`.
*
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*
* Non-global location is required for requests using AutoML models or
* custom glossaries.
*
* Models and glossaries must be within the same region (have same
* location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
* @param {string} [request.mimeType]

@@ -312,11 +346,2 @@ * Optional. The format of the source text, for example, "text/html",

* source language within the response.
* @param {string} [request.parent]
* Required. Location to make a regional or global call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
*
* Models and glossaries must be within the same region (have same
* location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
* @param {string} [request.model]

@@ -346,2 +371,11 @@ * Optional. The `model` type requested for this translation.

* This object should have the same structure as [TranslateTextGlossaryConfig]{@link google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
* @param {Object.<string, string>} [request.labels]
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
* @param {Object} [options]

@@ -368,5 +402,7 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

* const targetLanguageCode = '';
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* const request = {
* contents: contents,
* targetLanguageCode: targetLanguageCode,
* parent: formattedParent,
* };

@@ -405,8 +441,11 @@ * client.translateText(request)

* The request object that will be sent.
* @param {string} [request.parent]
* Required. Location to make a regional or global call.
* @param {string} request.parent
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
* Format: `projects/{project-id}/locations/{location-id}` or
* `projects/{project-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*

@@ -430,2 +469,11 @@ * Only models within the same region (has same location-id) can be used.

* "text/plain". If left blank, the MIME type defaults to "text/html".
* @param {Object.<string, string>} [request.labels]
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
* @param {Object} [options]

@@ -450,4 +498,4 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

*
*
* client.detectLanguage({})
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* client.detectLanguage({parent: formattedParent})
* .then(responses => {

@@ -484,9 +532,14 @@ * const response = responses[0];

* The request object that will be sent.
* @param {string} [request.parent]
* Required. Location to make a regional or global call.
* @param {string} request.parent
* Required. Project or location to make a call. Must refer to a caller's
* project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
* Format: `projects/{project-id}` or
* `projects/{project-id}/locations/{location-id}`.
*
* For global calls, use `projects/{project-id}/locations/global`.
* For global calls, use `projects/{project-id}/locations/global` or
* `projects/{project-id}`.
*
* Non-global location is required for AutoML models.
*
* Only models within the same region (have same location-id) can be used,

@@ -532,4 +585,4 @@ * otherwise an INVALID_ARGUMENT (400) error is returned.

*
*
* client.getSupportedLanguages({})
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* client.getSupportedLanguages({parent: formattedParent})
* .then(responses => {

@@ -576,2 +629,12 @@ * const response = responses[0];

* The request object that will be sent.
* @param {string} request.parent
* Required. Location to make a call. Must refer to a caller's project.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* The `global` location is not supported for batch translation.
*
* Only AutoML Translation models or glossaries within the same region (have
* the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
* error is returned.
* @param {string} request.sourceLanguageCode

@@ -594,12 +657,2 @@ * Required. Source language code.

* This object should have the same structure as [OutputConfig]{@link google.cloud.translation.v3beta1.OutputConfig}
* @param {string} [request.parent]
* Required. Location to make a regional call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* The `global` location is not supported for batch translation.
*
* Only AutoML Translation models or glossaries within the same region (have
* the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
* error is returned.
* @param {Object.<string, string>} [request.models]

@@ -625,2 +678,11 @@ * Optional. The models to use for translation. Map's key is target language

* It's keyed by target language code.
* @param {Object.<string, string>} [request.labels]
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
*
* See https://cloud.google.com/translate/docs/labels for more information.
* @param {Object} [options]

@@ -645,2 +707,3 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

*
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* const sourceLanguageCode = '';

@@ -651,2 +714,3 @@ * const targetLanguageCodes = [];

* const request = {
* parent: formattedParent,
* sourceLanguageCode: sourceLanguageCode,

@@ -675,2 +739,3 @@ * targetLanguageCodes: targetLanguageCodes,

*
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* const sourceLanguageCode = '';

@@ -681,2 +746,3 @@ * const targetLanguageCodes = [];

* const request = {
* parent: formattedParent,
* sourceLanguageCode: sourceLanguageCode,

@@ -714,2 +780,3 @@ * targetLanguageCodes: targetLanguageCodes,

*
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* const sourceLanguageCode = '';

@@ -720,2 +787,3 @@ * const targetLanguageCodes = [];

* const request = {
* parent: formattedParent,
* sourceLanguageCode: sourceLanguageCode,

@@ -874,3 +942,3 @@ * targetLanguageCodes: targetLanguageCodes,

* The request object that will be sent.
* @param {string} [request.parent]
* @param {string} request.parent
* Required. The name of the project from which to list all of the glossaries.

@@ -919,3 +987,5 @@ * @param {number} [request.pageSize]

* // Iterate over all elements.
* client.listGlossaries({})
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
*
* client.listGlossaries({parent: formattedParent})
* .then(responses => {

@@ -932,3 +1002,5 @@ * const resources = responses[0];

* // Or obtain the paged response.
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
*
*
* const options = {autoPaginate: false};

@@ -950,3 +1022,3 @@ * const callback = responses => {

* }
* client.listGlossaries({}, options)
* client.listGlossaries({parent: formattedParent}, options)
* .then(callback)

@@ -990,3 +1062,3 @@ * .catch(err => {

* The request object that will be sent.
* @param {string} [request.parent]
* @param {string} request.parent
* Required. The name of the project from which to list all of the glossaries.

@@ -1017,4 +1089,4 @@ * @param {number} [request.pageSize]

*
*
* client.listGlossariesStream({})
* const formattedParent = client.locationPath('[PROJECT]', '[LOCATION]');
* client.listGlossariesStream({parent: formattedParent})
* .on('data', element => {

@@ -1021,0 +1093,0 @@ * // doThingsWith(element)

@@ -7,2 +7,24 @@ # Changelog

## [4.2.0](https://www.github.com/googleapis/nodejs-translate/compare/v4.1.3...v4.2.0) (2019-10-10)
### Bug Fixes
* **deps:** update dependency yargs to v14 ([3d6b18d](https://www.github.com/googleapis/nodejs-translate/commit/3d6b18d))
* **deps:** use the latest extend ([#316](https://www.github.com/googleapis/nodejs-translate/issues/316)) ([f7ca873](https://www.github.com/googleapis/nodejs-translate/commit/f7ca873))
* **docs:** stop linking reference documents to anchor ([f935f91](https://www.github.com/googleapis/nodejs-translate/commit/f935f91))
* **samples:** use us-central1 region (not global) ([#322](https://www.github.com/googleapis/nodejs-translate/issues/322)) ([8500423](https://www.github.com/googleapis/nodejs-translate/commit/8500423))
* add filter to method signature ([f6fb81e](https://www.github.com/googleapis/nodejs-translate/commit/f6fb81e))
* hybrid glossaries ([#338](https://www.github.com/googleapis/nodejs-translate/issues/338)) ([d37671a](https://www.github.com/googleapis/nodejs-translate/commit/d37671a))
* hybrid glossary tutorial region tag ([#334](https://www.github.com/googleapis/nodejs-translate/issues/334)) ([d61836d](https://www.github.com/googleapis/nodejs-translate/commit/d61836d))
* use compatible version of google-gax ([620304e](https://www.github.com/googleapis/nodejs-translate/commit/620304e))
* use correct version for x-goog-api-client header ([50950c9](https://www.github.com/googleapis/nodejs-translate/commit/50950c9))
### Features
* add label support ([#331](https://www.github.com/googleapis/nodejs-translate/issues/331)) ([c912f71](https://www.github.com/googleapis/nodejs-translate/commit/c912f71))
* load protos from JSON, grpc-fallback support ([423c336](https://www.github.com/googleapis/nodejs-translate/commit/423c336))
* samples for hybrid glossaries tutorial ([#327](https://www.github.com/googleapis/nodejs-translate/issues/327)) ([96ec12f](https://www.github.com/googleapis/nodejs-translate/commit/96ec12f))
### [4.1.3](https://www.github.com/googleapis/nodejs-translate/compare/v4.1.2...v4.1.3) (2019-08-05)

@@ -9,0 +31,0 @@

{
"name": "@google-cloud/translate",
"description": "Cloud Translation API Client Library for Node.js",
"version": "4.1.3",
"version": "4.2.0",
"license": "Apache-2.0",

@@ -52,4 +52,4 @@ "author": "Google Inc.",

"arrify": "^2.0.0",
"extend": "^3.0.1",
"google-gax": "^1.0.0",
"extend": "^3.0.2",
"google-gax": "^1.6.3",
"is": "^3.2.1",

@@ -69,3 +69,3 @@ "is-html": "^2.0.0",

"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.0.0",

@@ -83,4 +83,4 @@ "gts": "^1.0.0",

"source-map-support": "^0.5.6",
"typescript": "~3.5.0"
"typescript": "~3.6.0"
}
}

@@ -92,2 +92,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

| --------------------------- | --------------------------------- | ------ |
| Hybrid Glossaries | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/hybridGlossaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/hybridGlossaries.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |

@@ -130,3 +131,3 @@ | Translate | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/translate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/translate.js,samples/README.md) |

[client-docs]: https://googleapis.dev/nodejs/translate/latest#reference
[client-docs]: https://googleapis.dev/nodejs/translate/latest
[product-docs]: https://cloud.google.com/translate/docs/

@@ -138,3 +139,1 @@ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

[auth]: https://cloud.google.com/docs/authentication/getting-started
<a name="reference"></a>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc