Google Translate API v3 要求我们传递“parent”参数。
它在他们的示例代码中随处可见,例如:
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
// const projectId = 'YOUR_PROJECT_ID';
// const location = 'global';
// const text = 'text to translate';
// Imports the Google Cloud Translation library
const {TranslationServiceClient} = require('@google-cloud/translate');
// Instantiates a client
const translationClient = new TranslationServiceClient();
async function translateText() {
// Construct request
const request = {
parent: `projects/${projectId}/locations/${location}`, // <-- HERE
contents: [text],
mimeType: 'text/plain', // mime types: text/plain, text/html
sourceLanguageCode: …Run Code Online (Sandbox Code Playgroud) webkit google-translate node.js node-webkit google-cloud-platform
你能给我推荐一个处理 WebRTC 的 Web 应用程序的 QA 自动化工具吗?
目标浏览器和设备:
如果可能,请推荐可以与Jenkins集成的工具。