jp.ms.common.modules 1.0.3 → 1.0.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/dist/config/locale.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { I18nAsyncOptions } from 'nestjs-i18n';
|
|
2
|
-
export declare function getLocaleConfig(configService: object
|
|
2
|
+
export declare function getLocaleConfig(configService: object): I18nAsyncOptions;
|
package/dist/config/locale.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLocaleConfig = getLocaleConfig;
|
|
4
|
-
const path_1 = require("path");
|
|
5
4
|
const nestjs_i18n_1 = require("nestjs-i18n");
|
|
6
|
-
function getLocaleConfig(configService
|
|
5
|
+
function getLocaleConfig(configService) {
|
|
7
6
|
return {
|
|
8
7
|
useFactory: async (configService) => {
|
|
9
8
|
return ({
|
|
10
9
|
fallbackLanguage: 'en',
|
|
11
10
|
loaderOptions: {
|
|
12
|
-
path:
|
|
11
|
+
path: configService.get('LOCALE_PATH'),
|
|
13
12
|
watch: true,
|
|
14
13
|
},
|
|
15
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":";;AAGA,0CAkBC;AArBD,6CAAsG;AAGtG,SAAgB,eAAe,CAAE,aAAqB;IAClD,OAAO;QACH,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE;YAC/C,OAAO,CAAC;gBACJ,gBAAgB,EAAE,IAAI;gBACtB,aAAa,EAAE;oBACX,IAAI,EAAE,aAAa,CAAC,GAAG,CAAS,aAAa,CAAW;oBACxD,KAAK,EAAE,IAAI;iBACd;aACJ,CAAC,CAAA;QACN,CAAC;QACD,SAAS,EAAE;YACP,EAAE,GAAG,EAAE,2BAAa,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE;YACzC,oCAAsB;YACtB,EAAE,GAAG,EAAE,4BAAc,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE;SAC/C;QACD,MAAM,EAAE,CAAC,aAAa,CAAC;KACN,CAAC;AAC1B,CAAC"}
|