Skip to content

Commit 1ec1006

Browse files
committed
chore: update version & extension configuration
1 parent 494b8da commit 1ec1006

File tree

1 file changed

+51
-11
lines changed

1 file changed

+51
-11
lines changed

package.json

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-intl-linter",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"publisher": "styx11",
55
"description": "vscode linter extension for react-intl",
66
"repository": "git@github.com:Styx11/react-intl-linter.git",
@@ -32,16 +32,56 @@
3232
"type": "object",
3333
"title": "ReactIntlLinter",
3434
"properties": {
35-
"reactIntlLinter.zhConfigName": {
36-
"type": "string",
37-
"default": "zh_CN",
38-
"markdownDescription": "中文配置文件名(不包括后缀)"
39-
},
40-
"reactIntlLinter.enConfigName": {
41-
"type": "string",
42-
"default": "en_US",
43-
"markdownDescription": "英文国际化配置文件名(不包括后缀)"
44-
},
35+
"reactIntlLinter.localLanguage": {
36+
"type": "string",
37+
"default": "zh",
38+
"enum": [
39+
"zh",
40+
"en",
41+
"jp",
42+
"cht"
43+
],
44+
"enumDescriptions": [
45+
"中文",
46+
"英文",
47+
"日文",
48+
"繁体中文"
49+
],
50+
"markdownDescription": "本地语言,即代码中使用的本地语言"
51+
},
52+
"reactIntlLinter.localLanguageConfigName": {
53+
"type": "string",
54+
"default": "zh_CN",
55+
"markdownDescription": "本地语言配置文件名(不包括后缀)"
56+
},
57+
"reactIntlLinter.intlLanguage": {
58+
"type": "array",
59+
"default": ["en"],
60+
"items": {
61+
"type": "string",
62+
"enum": [
63+
"zh",
64+
"en",
65+
"jp",
66+
"cht"
67+
],
68+
"enumDescriptions": [
69+
"中文",
70+
"英文",
71+
"日文",
72+
"繁体中文"
73+
]
74+
},
75+
"markdownDescription": "国际化语言,即支持的 react-intl 国际化目标语言"
76+
},
77+
"reactIntlLinter.intlLanguageConfigName": {
78+
"type": "array",
79+
"default": ["en_US"],
80+
"items": {
81+
"type": "string"
82+
},
83+
"markdownDescription": "国际化语言配置文件名数组(不包括后缀,**必须与国际化语言数组配置一一对应**)"
84+
},
4585
"reactIntlLinter.intlConfigPath": {
4686
"type": "string",
4787
"default": "src/intl",

0 commit comments

Comments
 (0)