@midwayjs/i18n 3.0.0-beta.10 → 3.0.0-beta.11

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
7
+
8
+ **Note:** Version bump only for package @midwayjs/i18n
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
7
15
 
8
16
 
@@ -8,5 +8,6 @@ export declare class I18nMiddleware implements IMiddleware<any, any> {
8
8
  resolverConfig: I18nOptions['resolver'];
9
9
  i18nConfig: I18nOptions;
10
10
  resolve(app: IMidwayApplication): (req: any, res: any, next: any) => Promise<any>;
11
+ getName(): string;
11
12
  }
12
13
  //# sourceMappingURL=middleware.d.ts.map
@@ -137,6 +137,9 @@ let I18nMiddleware = class I18nMiddleware {
137
137
  };
138
138
  }
139
139
  }
140
+ getName() {
141
+ return 'i18n';
142
+ }
140
143
  };
141
144
  __decorate([
142
145
  (0, decorator_1.Config)('i18n.resolver'),
package/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { i18nOptions } from './dist/';
1
+ import { I18nOptions } from './dist/';
2
2
 
3
3
  export * from './dist/index';
4
4
 
5
5
  declare module '@midwayjs/core/dist/interface' {
6
6
  interface MidwayConfig {
7
- i18n?: PowerPartial<i18nOptions>;
7
+ i18n?: PowerPartial<I18nOptions>;
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/i18n",
3
3
  "description": "midway i18n component",
4
- "version": "3.0.0-beta.10",
4
+ "version": "3.0.0-beta.11",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -13,11 +13,11 @@
13
13
  "picomatch": "^2.3.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@midwayjs/core": "^3.0.0-beta.10",
17
- "@midwayjs/decorator": "^3.0.0-beta.10",
18
- "@midwayjs/express": "^3.0.0-beta.10",
19
- "@midwayjs/koa": "^3.0.0-beta.10",
20
- "@midwayjs/mock": "^3.0.0-beta.10"
16
+ "@midwayjs/core": "^3.0.0-beta.11",
17
+ "@midwayjs/decorator": "^3.0.0-beta.11",
18
+ "@midwayjs/express": "^3.0.0-beta.11",
19
+ "@midwayjs/koa": "^3.0.0-beta.11",
20
+ "@midwayjs/mock": "^3.0.0-beta.11"
21
21
  },
22
22
  "keywords": [
23
23
  "midway",
@@ -39,5 +39,5 @@
39
39
  "type": "git",
40
40
  "url": "https://github.com/midwayjs/midway.git"
41
41
  },
42
- "gitHead": "153870f2e2dd6b17673ec7591e49224a6bd51b36"
42
+ "gitHead": "a2b066fd500e815e799e7f421cd216f12e0e9f8e"
43
43
  }