> For the complete documentation index, see [llms.txt](https://docs-cn.hapigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-cn.hapigo.com/extention/translate.md).

# 聚合翻译

HapiGo 的翻译扩展为用户提供翻译、截图翻译及语音朗读 3 项核心功能。

此 3 项功能均包含互联网服务，需要订阅方能使用。HapiGo 为方便用户使用，提供内置服务。对于使用量较大、动手能力较强的用户，也提供设置自定义 API 功能。

为了方便 HapiGo 用户进行日常轻量级翻译，HapiGo 内置了聚合翻译功能。聚合翻译的结果目前已达到 8 项。

<figure><img src="/files/YzUGqIPKptF3uDE2Z6SM" alt=""><figcaption></figcaption></figure>

### 操作方法

**选词/输入翻译**：使用快捷键 <mark style="background-color:blue;">Option+D</mark> 可以自动翻译鼠标选中的词语或段落。如果没有选中的词，则会打开空白翻译窗口，让你输入词语进行翻译。

**截图翻译**：使用快捷键 <mark style="background-color:blue;">Option+S</mark> 可以打开截图。此时截取需要翻译的屏幕内容，即可自动识别并翻译。

如果对于以上快捷键或者窗口出现位置不习惯，也可以从顶部菜单栏 HapiGo 菜单中进入「设置」-「翻译和 OCR」进行修改。

### 服务付费

HapiGo 为方便用户直接就使用所有翻译服务，提供了内置接口。但所使用的这些服务都是根据使用量而付费的，因此此项服务纳入为付费功能。

**内置服务的字符用量查询：**&#x6253;开翻译窗口，在窗口右上角齿轮菜单的最下面就是翻译使用字符和总字符数。

<figure><img src="/files/Dfcx6TUDY3Ied36tIYaT" alt=""><figcaption></figcaption></figure>

当然，对于部分使用量特别大且动手能力很强的用户，也可以尝试自己注册这些服务的账号。这些服务默认都提供比较大的免费额度，使用自己的 API 密钥相当于免费使用翻译功能。

注册翻译服务的所有操作步骤，我们均已经写成详细文档，大家可自行参考操作。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.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.
