Google Cloud Translate

Dynamically translate between languages using Google machine learning

Go to site
Explore
/
Apps
/
Google Cloud Translate

Google Cloud Translate API Integrations

Build and run workflows using the Google Cloud Translate API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

Google Cloud Translate API can be used to build applications that can translate between languages. Some examples of applications that can be built using Google Cloud Translate API include:

  • A language learning app that can translate between languages.
  • A translation app that can translate documents or webpages from one language to another.
  • A chat app that can translate messages between users in different languages.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_cloud_translate: {
      type: "app",
      app: "google_cloud_translate",
    }
  },
  async run({steps, $}) {
    const data = {
      "q": `¡hola mundo!`,
      "target": `en`,
    }
    return await axios($, {
      method: "post",
      url: `https://translation.googleapis.com/language/translate/v2?key=${this.google_cloud_translate.$auth.api_key}`,
      headers: {
        "Content-Type": `application/json`,
        "charset": `utf-8`,
      },
      data,
    })
  },
})

Authentication

Google Cloud Translate uses API keys for authentication. When you connect your Google Cloud Translate account, Pipedream securely stores the keys so you can easily authenticate to Google Cloud Translate APIs in both code and no-code steps.

To create an API key, your account must be granted the primitive Editor role (roles/editor) on the current project. For more information, see primitive roles.

To create an API key:

  1. Navigate to the APIs & Services→Credentials panel in Cloud Console.
  2. Select Create credentials, then select API key from the dropdown menu.
  3. The API key created dialog box displays your newly created key.