# Google 翻译

{% hint style="warning" %}
注册 Google 翻译需要具备 2 个条件：

1. 具备访问 Google 网站的网络条件
2. 持有 VISA、MasterCard、AmericanExpress 信用卡
   {% endhint %}

{% hint style="success" %}
Google 翻译：<https://cloud.google.com/translate?hl=zh-cn>
{% endhint %}

### 登录 & 开通翻译服务

* 打开 Google 翻译网站
* 点击右上角登录（如无账号，可自行注册）
* 登录后点击「免费试用 Translation」

![](/files/xhi8bav3o9JgBEo2xIWg)

* 后续需要完善账号信息和付款信息，请按图填写

![完善账号信息](/files/jtI2q2MEsKWvR71ThU5m) ![完善付款信息](/files/IcSDTbhz2MZg0VTLnIhF)

* 对于新账号，Google Cloud 提供使用期限 90 天的 $300 元赠金。请注意网页提示，进行激活。

![](/files/wBlG7SZ6HvdfSmnfPVfO)

* 以上完善账号信息后，接着开始启用翻译服务 API。在顶部搜索栏输入「translation」，并点击第一个结果「Translation」

![](/files/rKbJBEKvi4kt6CDaFIIw)

* 打开翻译后，点击「启用 API」

![](/files/xdY9W3hpgAQg05no4fKf)

### 创建凭证

* 在顶部搜索栏输入「api」，在结果中点击「API 和服务」

![](/files/ZjppdIx7dat1Cv6uJLpD)

* 在左侧导航切换到「凭证」，并点击「创建凭证」-「API 密钥」

![创建密钥](/files/lO50j9XYHgSl9I5FFF4O)

![API Key](/files/0aEoRz5trJMRbuNKvKpz)

### 设置 API 密钥

在 HapiGo 的翻译设置中，选择「自定义」，然后点击 + 添加 Google 翻译。在弹出的对话框中填入上图「API Key」，点击完成后即可。

![](/files/MiQiGzehxWNHBRlrZFTK)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-cn.hapigo.com/extention/translate/addtranslate/google.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
