@dofe/infra-i18n 0.1.54 → 0.1.56
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/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* nestjs-i18n loader 根目录(包含语言子目录 en/、zh-CN/)。
|
|
3
|
+
* 基于运行时 __dirname 指向包 dist 目录:在 webpack external 模式下本模块
|
|
4
|
+
* 不经 webpack 转译、由 Node 原生加载,__dirname 为真实绝对路径,agents 可
|
|
5
|
+
* 确定性获取资源目录用于 fs 加载(无需依赖行为不确定的 require.resolve)。
|
|
6
|
+
*/
|
|
7
|
+
export declare const i18nLoaderPath: string;
|
|
1
8
|
export declare const i18nPaths: {
|
|
2
9
|
readonly en: string;
|
|
3
10
|
readonly 'zh-CN': string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/i18n/src/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;CAIZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/i18n/src/index.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,QAAY,CAAC;AAExC,eAAO,MAAM,SAAS;;;;CAIZ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.i18nPaths = void 0;
|
|
3
|
+
exports.i18nPaths = exports.i18nLoaderPath = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* nestjs-i18n loader 根目录(包含语言子目录 en/、zh-CN/)。
|
|
6
|
+
* 基于运行时 __dirname 指向包 dist 目录:在 webpack external 模式下本模块
|
|
7
|
+
* 不经 webpack 转译、由 Node 原生加载,__dirname 为真实绝对路径,agents 可
|
|
8
|
+
* 确定性获取资源目录用于 fs 加载(无需依赖行为不确定的 require.resolve)。
|
|
9
|
+
*/
|
|
10
|
+
exports.i18nLoaderPath = __dirname;
|
|
4
11
|
exports.i18nPaths = {
|
|
5
12
|
en: __dirname + '/en',
|
|
6
13
|
'zh-CN': __dirname + '/zh-CN',
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/i18n/src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/i18n/src/index.ts"],"names":[],"mappings":";;;AAGA;;;;;GAKG;AACU,QAAA,cAAc,GAAG,SAAS,CAAC;AAE3B,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE,SAAS,GAAG,KAAK;IACrB,OAAO,EAAE,SAAS,GAAG,QAAQ;IAC7B,KAAK,EAAE,SAAS,GAAG,QAAQ;CACnB,CAAC"}
|