@modern-js/plugin-i18n 1.0.0-rc.9 → 1.1.1

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 CHANGED
@@ -1,5 +1,145 @@
1
1
  # @modern-js/plugin-i18n
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0fa83663: support more .env files
8
+
9
+ ## 1.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 96119db2: Relese v1.1.0
14
+
15
+ ## 1.0.0
16
+
17
+ ### Patch Changes
18
+
19
+ - 224f7fe: fix server route match
20
+ - 30ac27c: feat: add generator package description
21
+ - 0fd196e: feat: fix bugs
22
+ - 204c626: feat: initial
23
+ - 63be0a5: fix: #118 #104
24
+
25
+ ## 1.0.0-rc.23
26
+
27
+ ### Patch Changes
28
+
29
+ - 224f7fe: fix server route match
30
+ - 30ac27c: feat: add generator package description
31
+ - 0fd196e: feat: fix bugs
32
+ - 204c626: feat: initial
33
+ - 63be0a5: fix: #118 #104
34
+
35
+ ## 1.0.0-rc.22
36
+
37
+ ### Patch Changes
38
+
39
+ - 224f7fe: fix server route match
40
+ - 30ac27c: feat: add generator package description
41
+ - 0fd196e: feat: fix bugs
42
+ - 204c626: feat: initial
43
+ - 63be0a5: fix: #118 #104
44
+
45
+ ## 1.0.0-rc.21
46
+
47
+ ### Patch Changes
48
+
49
+ - 224f7fe: fix server route match
50
+ - 30ac27c: feat: add generator package description
51
+ - 0fd196e: feat: fix bugs
52
+ - 204c626: feat: initial
53
+ - 63be0a5: fix: #118 #104
54
+
55
+ ## 1.0.0-rc.20
56
+
57
+ ### Patch Changes
58
+
59
+ - 224f7fe: fix server route match
60
+ - 30ac27c: feat: add generator package description
61
+ - feat: fix bugs
62
+ - 204c626: feat: initial
63
+ - 63be0a5: fix: #118 #104
64
+
65
+ ## 1.0.0-rc.19
66
+
67
+ ### Patch Changes
68
+
69
+ - 224f7fe: fix server route match
70
+ - 30ac27c: feat: add generator package description
71
+ - 204c626: feat: initial
72
+ - 63be0a5: fix: #118 #104
73
+
74
+ ## 1.0.0-rc.18
75
+
76
+ ### Patch Changes
77
+
78
+ - 224f7fe: fix server route match
79
+ - 30ac27c: feat: add generator package description
80
+ - 204c626: feat: initial
81
+ - 63be0a5: fix: #118 #104
82
+
83
+ ## 1.0.0-rc.17
84
+
85
+ ### Patch Changes
86
+
87
+ - 224f7fe: fix server route match
88
+ - 30ac27c: feat: add generator package description
89
+ - 204c626: feat: initial
90
+ - fix: #118 #104
91
+
92
+ ## 1.0.0-rc.16
93
+
94
+ ### Patch Changes
95
+
96
+ - 224f7fe: fix server route match
97
+ - 30ac27c: feat: add generator package description
98
+ - 204c626: feat: initial
99
+
100
+ ## 1.0.0-rc.15
101
+
102
+ ### Patch Changes
103
+
104
+ - 224f7fe: fix server route match
105
+ - 30ac27c: feat: add generator package description
106
+ - 204c626: feat: initial
107
+
108
+ ## 1.0.0-rc.14
109
+
110
+ ### Patch Changes
111
+
112
+ - 224f7fe: fix server route match
113
+ - 204c626: feat: initial
114
+
115
+ ## 1.0.0-rc.13
116
+
117
+ ### Patch Changes
118
+
119
+ - 224f7fe: fix server route match
120
+ - 204c626: feat: initial
121
+
122
+ ## 1.0.0-rc.12
123
+
124
+ ### Patch Changes
125
+
126
+ - 224f7fe: fix server route match
127
+ - 204c626: feat: initial
128
+
129
+ ## 1.0.0-rc.11
130
+
131
+ ### Patch Changes
132
+
133
+ - 224f7fe: fix server route match
134
+ - 204c626: feat: initial
135
+
136
+ ## 1.0.0-rc.10
137
+
138
+ ### Patch Changes
139
+
140
+ - 224f7fe: fix server route match
141
+ - 204c626: feat: initial
142
+
3
143
  ## 1.0.0-rc.9
4
144
 
5
145
  ### Patch Changes
package/README.md CHANGED
@@ -2,31 +2,29 @@
2
2
  <p align="center">
3
3
  <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
4
4
  </p>
5
+ <p align="center">
6
+ 现代 Web 工程体系
7
+ <br/>
8
+ <a href="https://modernjs.dev" target="blank">
9
+ modernjs.dev
10
+ </a>
11
+ </p>
12
+ <p align="center">
13
+ The meta-framework suite designed from scratch for frontend-focused modern web development
14
+ </p>
5
15
 
6
- <p align="center">现代 Web 工程体系</p>
7
-
8
- ## 背景
9
- - [迈入现代 Web 开发](https://zhuanlan.zhihu.com/p/386607009)
10
- - [现代 Web 开发者问卷调查报告](https://zhuanlan.zhihu.com/p/403206195)
11
-
12
- ## 计划
13
-
14
- Modern.js 的 1.0.0.rc 版已经发到 npm,目前在做测试改进,README 文档之后统一提供(现阶段加入测试和开发,可以发 [issue](https://github.com/modern-js-dev/modern.js/issues) 留微信联系),完整的文档站计划在10月14日上线
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
16
+ # Introduction
27
17
 
18
+ > The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.
28
19
 
20
+ - [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)
29
21
 
22
+ ## Getting Started
30
23
 
24
+ - [Quick Start](https://modernjs.dev/docs/start)
25
+ - [Guides](https://modernjs.dev/docs/guides)
26
+ - [API References](https://modernjs.dev/docs/apis)
31
27
 
28
+ ## Contributing
32
29
 
30
+ - [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)
@@ -1,5 +1,5 @@
1
1
  import _get from "lodash/get";
2
- import { getObjKeyMap } from "./utils";
2
+ import { getObjKeyMap } from "./utils/index";
3
3
 
4
4
  class I18n {
5
5
  constructor() {
@@ -7,7 +7,7 @@ exports.I18n = void 0;
7
7
 
8
8
  var _get2 = _interopRequireDefault(require("lodash/get"));
9
9
 
10
- var _utils = require("./utils");
10
+ var _index = require("./utils/index");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
@@ -45,7 +45,7 @@ class I18n {
45
45
  this.languageMap = languageMap;
46
46
  }
47
47
 
48
- return (0, _utils.getObjKeyMap)(this.languageMap[this.language]);
48
+ return (0, _index.getObjKeyMap)(this.languageMap[this.language]);
49
49
  }
50
50
 
51
51
  changeLanguage(config) {
@@ -6,7 +6,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6
6
 
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8
8
 
9
- import { getObjKeyMap } from "./utils";
9
+ import { getObjKeyMap } from "./utils/index";
10
10
 
11
11
  var I18n = /*#__PURE__*/function () {
12
12
  function I18n() {
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "@modern-js/plugin-i18n",
3
- "version": "1.0.0-rc.9",
3
+ "description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
4
+ "homepage": "https://modernjs.dev",
5
+ "bugs": "https://github.com/modern-js-dev/modern.js/issues",
6
+ "repository": "modern-js-dev/modern.js",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "react",
10
+ "framework",
11
+ "modern",
12
+ "modern.js"
13
+ ],
14
+ "version": "1.1.1",
4
15
  "jsnext:source": "./src/index.ts",
5
16
  "types": "./dist/types/index.d.ts",
6
17
  "main": "./dist/js/node/index.js",
@@ -24,8 +35,8 @@
24
35
  "@types/lodash": "^4.14.126",
25
36
  "@types/node": "^14",
26
37
  "typescript": "^4",
27
- "@modern-js/plugin-testing": "^1.0.0-rc.9",
28
- "@modern-js/module-tools": "^1.0.0-rc.9"
38
+ "@modern-js/plugin-testing": "^1.1.0",
39
+ "@modern-js/module-tools": "^1.1.0"
29
40
  },
30
41
  "sideEffects": false,
31
42
  "modernConfig": {},
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { get } from 'lodash';
2
- import { getObjKeyMap } from './utils';
2
+ import { getObjKeyMap } from './utils/index';
3
3
 
4
4
  type Language = string;
5
5
 
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ extends: ['@modern-js'],
3
+ parserOptions: {
4
+ project: require.resolve('./tsconfig.json'),
5
+ },
6
+ };