opencode-i18n 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +14 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,20 +10,29 @@ OpenCode TUI 界面本地化插件。
10
10
 
11
11
  安装后运行 `/i18n`,用选项切换语言。选择中文会自动开启本地化;选择 `English` 会回到原始英文。
12
12
 
13
- ## 一键安装(npm)
13
+ ## 一键安装(命令面板)
14
14
 
15
- ```bash
16
- opencode plugin opencode-i18n
17
- ```
15
+ 在 OpenCode 中:
16
+
17
+ 1. 按 **`Ctrl + P`** 打开命令面板
18
+ 2. 搜索 **`install plugin`**
19
+ 3. 输入 **`opencode-i18n`**,回车
18
20
 
19
21
  安装后重启 OpenCode,运行 `/i18n` 选择 English、简体中文或繁體中文。
20
22
 
21
23
  说明:
22
24
 
23
- - 该命令把插件安装到全局配置(`~/.config/opencode`),自动合并 `tui.json` 的 `plugin` 列表。
25
+ - 插件已发布到 npm,可直接从命令面板安装。
26
+ - 安装会自动写入 `opencode.json`(server 端)和 `tui.json`(TUI 端)的 `plugin` 列表。
24
27
  - 插件自带默认语言包(`i18n/locales/*.json`),开箱即用。
25
28
  - 如需自定义语言包,把文件放到 `~/.config/opencode/i18n/locales/` 即可覆盖默认值。
26
29
 
30
+ 也可以用命令行安装:
31
+
32
+ ```bash
33
+ opencode plugin opencode-i18n
34
+ ```
35
+
27
36
  ## 一句提示词安装
28
37
 
29
38
  把下面这一句发给 OpenCode:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-i18n",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "OpenCode TUI i18n plugin — localize the interface into 简体中文 / 繁體中文 and more, with one-command install.",
5
5
  "license": "MIT",
6
6
  "type": "module",