Skip to content

Commit 5cfd0da

Browse files
committed
update
1 parent 6b903d5 commit 5cfd0da

File tree

5 files changed

+10
-433
lines changed

5 files changed

+10
-433
lines changed

README_zh_CN.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@
5555
国际化方面我们主要考虑的是支持多语言,具体需要完成以下工作:
5656
5757
* 插件自身的元信息,比如插件描述和自述文件
58-
* plugin.json 中的 `description``readme` 字段,以及对应的 README*.md 文件
58+
* plugin.json 中的 `description``readme` 字段,以及对应的 README*.md 文件
5959
* 插件中使用的文本,比如按钮文字和提示信息
60-
* src/i18n/*.json 语言配置文件
61-
* 代码中使用 `this.i18.key` 获取文本
60+
* src/i18n/*.json 语言配置文件
61+
* 代码中使用 `this.i18.key` 获取文本
62+
* 最后在 plugin.json 中的 `i18n` 字段中声明该插件支持的语言
6263
6364
建议插件至少支持英文和简体中文,这样可以方便更多人使用。
6465

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plugin-sample-vite-svelte",
3-
"version": "0.0.6",
3+
"version": "0.1.4",
44
"type": "module",
55
"description": "",
66
"repository": "",
@@ -21,7 +21,7 @@
2121
"minimist": "^1.2.8",
2222
"rollup-plugin-livereload": "^2.0.5",
2323
"sass": "^1.62.1",
24-
"siyuan": "^0.7.2",
24+
"siyuan": "0.7.3",
2525
"svelte": "^3.57.0",
2626
"ts-node": "^10.9.1",
2727
"typescript": "^5.0.4",

plugin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "plugin-sample-vite-svelte",
33
"author": "frostime",
44
"url": "https://github.com/siyuan-note/plugin-sample-vite-svelte",
5-
"version": "0.1.3",
5+
"version": "0.1.4",
66
"minAppVersion": "2.9.0",
77
"backends": ["windows", "linux", "darwin"],
88
"frontends": ["desktop"],

0 commit comments

Comments
 (0)