opencode-i18n 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -51
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,57 +33,6 @@ OpenCode TUI 界面本地化插件。
|
|
|
33
33
|
opencode plugin opencode-i18n
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
## 一句提示词安装
|
|
37
|
-
|
|
38
|
-
把下面这一句发给 OpenCode:
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
请从 https://github.com/huahai0202/opencode-i18n 安装 OpenCode i18n 插件:克隆仓库,Windows 运行 install.ps1、macOS/Linux 运行 install.sh,或按 README 手动复制文件到我的全局 OpenCode 配置目录,保留我已有配置并合并 tui.json 的 plugin 列表;完成后告诉我重启 OpenCode,并运行 /i18n 选择 English、简体中文或繁體中文。
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## 手动安装(复制式)
|
|
45
|
-
|
|
46
|
-
macOS / Linux:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
git clone https://github.com/huahai0202/opencode-i18n.git
|
|
50
|
-
cd opencode-i18n
|
|
51
|
-
./install.sh
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Windows PowerShell:
|
|
55
|
-
|
|
56
|
-
```powershell
|
|
57
|
-
git clone https://github.com/huahai0202/opencode-i18n.git
|
|
58
|
-
cd opencode-i18n
|
|
59
|
-
.\install.ps1
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
脚本会安装到(尊重 `XDG_CONFIG_HOME`,默认 `~/.config/opencode`):
|
|
63
|
-
|
|
64
|
-
```text
|
|
65
|
-
~/.config/opencode # macOS / Linux
|
|
66
|
-
%USERPROFILE%\.config\opencode # Windows
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
自定义安装路径:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
./install.sh --config-root /path/to/opencode-config # macOS / Linux
|
|
73
|
-
.\install.ps1 -ConfigRoot C:\path\to\opencode-config # Windows
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
它会复制这些文件:
|
|
77
|
-
|
|
78
|
-
- `plugins/i18n/index.ts`
|
|
79
|
-
- `tools/i18n-state.ts`
|
|
80
|
-
- `i18n/`
|
|
81
|
-
|
|
82
|
-
并合并:
|
|
83
|
-
|
|
84
|
-
- `tui.json` 的 `plugin` 列表
|
|
85
|
-
- `package.json` 的 `@opencode-ai/plugin` 依赖
|
|
86
|
-
|
|
87
36
|
## 使用
|
|
88
37
|
|
|
89
38
|
```text
|