@modern-js/generator-utils 3.1.2 → 3.1.4
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/CHANGELOG.md +22 -0
- package/dist/cjs/locale/index.js +1 -1
- package/dist/esm/locale/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @modern-js/generator-utils
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @modern-js/plugin-i18n@2.13.1
|
|
8
|
+
- @modern-js/utils@2.13.1
|
|
9
|
+
- @modern-js/generator-common@3.1.4
|
|
10
|
+
|
|
11
|
+
## 3.1.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 034f36b: feat: set the default language of CLI to English
|
|
16
|
+
|
|
17
|
+
feat: 将命令行的默认语言设置为英文
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [034f36b]
|
|
20
|
+
- Updated dependencies [034f36b]
|
|
21
|
+
- @modern-js/generator-common@3.1.3
|
|
22
|
+
- @modern-js/plugin-i18n@2.13.0
|
|
23
|
+
- @modern-js/utils@2.13.0
|
|
24
|
+
|
|
3
25
|
## 3.1.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/locale/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var import_plugin_i18n = require("@modern-js/plugin-i18n");
|
|
|
25
25
|
var import_zh = require("./zh");
|
|
26
26
|
var import_en = require("./en");
|
|
27
27
|
const i18n = new import_plugin_i18n.I18n();
|
|
28
|
-
const localeKeys = i18n.init("
|
|
28
|
+
const localeKeys = i18n.init("en", { zh: import_zh.ZH_LOCALE, en: import_en.EN_LOCALE });
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
31
|
i18n,
|
package/dist/esm/locale/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { I18n } from "@modern-js/plugin-i18n";
|
|
|
2
2
|
import { ZH_LOCALE } from "./zh";
|
|
3
3
|
import { EN_LOCALE } from "./en";
|
|
4
4
|
const i18n = new I18n();
|
|
5
|
-
const localeKeys = i18n.init("
|
|
5
|
+
const localeKeys = i18n.init("en", { zh: ZH_LOCALE, en: EN_LOCALE });
|
|
6
6
|
export {
|
|
7
7
|
i18n,
|
|
8
8
|
localeKeys
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "3.1.
|
|
14
|
+
"version": "3.1.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.18.0",
|
|
30
|
-
"@modern-js/plugin-i18n": "2.
|
|
31
|
-
"@modern-js/generator-common": "3.1.
|
|
32
|
-
"@modern-js/utils": "2.
|
|
30
|
+
"@modern-js/plugin-i18n": "2.13.1",
|
|
31
|
+
"@modern-js/generator-common": "3.1.4",
|
|
32
|
+
"@modern-js/utils": "2.13.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@modern-js/codesmith": "2.0
|
|
35
|
+
"@modern-js/codesmith": "2.1.0",
|
|
36
36
|
"@types/jest": "^29",
|
|
37
37
|
"@types/node": "^14",
|
|
38
38
|
"jest": "^29",
|
|
39
39
|
"typescript": "^4",
|
|
40
|
-
"@scripts/build": "2.
|
|
41
|
-
"@scripts/jest-config": "2.
|
|
40
|
+
"@scripts/build": "2.13.1",
|
|
41
|
+
"@scripts/jest-config": "2.13.1"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"modernConfig": {
|