小编Don*_*n P的帖子

Google Cloud Translate Advanced (V3) 中的“parent”参数是什么

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

5
推荐指数
1
解决办法
1453
查看次数

WebRTC 应用程序的 QA 自动化

你能给我推荐一个处理 WebRTC 的 Web 应用程序的 QA 自动化工具吗?

目标浏览器和设备:

  • Windows - 铬浏览器(Chrome 和 Edge)
  • 视窗 - 火狐
  • MacOS - Safari
  • 安卓 - 铬
  • ipadOS 和 iOS - Safari

如果可能,请推荐可以与Jenkins集成的工具。

automated-tests qa

2
推荐指数
1
解决办法
61
查看次数