fix(docs): locale translations

This commit is contained in:
Adam
2026-02-10 07:11:13 -06:00
parent 19ad7ad809
commit 4c4e30cd71
351 changed files with 3744 additions and 3765 deletions

View File

@@ -7,7 +7,7 @@ import { Tabs, TabItem } from "@astrojs/starlight/components"
import config from "../../../../config.mjs"
export const console = config.console
[**opencode**](/) 是一個開源人工智能編碼代理。它可用作基於終端的界面、桌面應用程或 IDE 擴展。
[**opencode**](/) 是一個開源AI編碼代理。它可用作基於 terminal 的介面、桌面應用程或 IDE 擴展。
![具有 opencode 主題的 opencode TUI](../../../assets/lander/screenshot.png)
@@ -17,13 +17,13 @@ export const console = config.console
#### 先決條件
要在終端中使用 opencode您需要
要在 terminal中使用 opencode您需要
1. 現代終端模擬器,例如:
- [韋茲術語](https://wezterm.org),跨平台
- [阿拉克里蒂](https://alacritty.org),跨平台
- [幽靈般的](https://ghostty.org)Linux 和 macOS
- [貓咪](https://sw.kovidgoyal.net/kitty/)Linux 和 macOS
1. 現代terminal模擬器,例如:
- [WezTerm](https://wezterm.org),跨平台
- [Alacritty](https://alacritty.org),跨平台
- [Ghostty](https://ghostty.org)Linux 和 macOS
- [Kitty](https://sw.kovidgoyal.net/kitty/)Linux 和 macOS
2. 您想要使用的 LLM 提供商的 API 密鑰。
@@ -87,19 +87,19 @@ curl -fsSL https://opencode.ai/install | bash
paru -S opencode-bin
```
#### 視窗
#### Windows
:::tip[Recommended: Use WSL]
為了在 Windows 上獲得最佳體驗,我們建議使用[適用於 Linux 的 Windows 子系統 (WSL)](/docs/windows-wsl)。它提供了更好的性能並與 opencode 的功能完全兼容。
:::
- **使用巧克力**
- **使用Chocolatey**
```bash
choco install opencode
```
- **使用勺子**
- **使用Scoop**
```bash
scoop install opencode
@@ -111,7 +111,7 @@ curl -fsSL https://opencode.ai/install | bash
npm install -g opencode-ai
```
- **使用米塞**
- **使用Mise**
```bash
mise use -g github:anomalyco/opencode
@@ -125,7 +125,7 @@ curl -fsSL https://opencode.ai/install | bash
目前正在支持使用 Bun 在 Windows 上安裝 opencode。
您還可以從[發布](https://github.com/anomalyco/opencode/releases) 獲取二進製文件。
您還可以從[Releases](https://github.com/anomalyco/opencode/releases) 獲取二進製文件。
---
@@ -143,7 +143,7 @@ curl -fsSL https://opencode.ai/install | bash
/connect
```
2. 登錄,添加您的單詳細信息,然後復制您的 API 密鑰。
2. 登錄,添加您的單詳細信息,然後復制您的 API 密鑰。
3. 粘貼您的 API 密鑰。
@@ -160,7 +160,7 @@ curl -fsSL https://opencode.ai/install | bash
## 初始化
現在您已經配置了提供程序,您可以導航到一個項目
現在您已經配置了提供,您可以導航到一個項目
你想繼續工作。
```bash
@@ -203,7 +203,7 @@ opencode
### 提出問題
您可以要求 opencode 向您解釋碼庫。
您可以要求 opencode 向您解釋程式碼庫。
:::tip
使用`@`鍵模糊搜索工程中的文件。
@@ -213,7 +213,7 @@ opencode
How is authentication handled in @packages/functions/src/api/index.ts
```
如果您沒有處理碼庫的一部分,這會很有幫助。
如果您沒有處理程式碼庫的一部分,這會很有幫助。
---
@@ -258,11 +258,11 @@ How is authentication handled in @packages/functions/src/api/index.ts
```
:::tip
將圖像拖放到終端中以將其添加到提示中。
將圖像拖放到terminal中以將其添加到提示中。
:::
opencode 可以掃描您提供的任何圖像並將其添加到提示中。你可以
通過將圖像拖放到終端中來完成此操作。
通過將圖像拖放到terminal中來完成此操作。
3. **構建功能**
@@ -336,13 +336,13 @@ Can you refactor the function in @packages/functions/src/api/index.ts?
## 分享
您與 opencode 的對話可以[與您的
團隊](/docs/分享)。
團隊](/docs/share)。
```bash frame="none"
/share
```
這將創建當前對話的鏈接並將其複製到剪貼板。
這將創建當前對話的連結並將其複製到剪貼板。
:::note
默認情況下不共享對話。
@@ -356,4 +356,4 @@ Can you refactor the function in @packages/functions/src/api/index.ts?
就是這樣!您現在已經是使用 opencode 的專家了。
要使其成為您自己的,我們建議 [選擇一個主題](/docs/themes)、[自定義按鍵綁定](/docs/keybinds)、[配置碼格式化程序](/docs/formatters)、[創建自定義命令](/docs/commands) 或使用 [opencode配置](/docs/config)。
要使其成為您自己的,我們建議 [選擇一個主題](/docs/themes)、[自定義按鍵綁定](/docs/keybinds)、[配置程式碼格式化程序](/docs/formatters)、[創建自定義命令](/docs/commands) 或使用 [opencode配置](/docs/config)。