@evlop/commons 1.0.132 → 1.0.133

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const I18nManager: React.FC;
3
+ export default I18nManager;
4
+ //# sourceMappingURL=I18nManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"I18nManager.d.ts","sourceRoot":"","sources":["../../../src/components/I18nManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAU/B,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.I18nManager = void 0;
7
+ const lodash_1 = require("lodash");
8
+ const react_1 = require("react");
9
+ const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
10
+ const useConfig_1 = require("../hooks/useConfig");
11
+ const I18nManager = () => {
12
+ const i18nResources = useConfig_1.useConfig('i18n');
13
+ react_1.useEffect(() => {
14
+ lodash_1.forEach(i18nResources, (values, language) => i18ninstance_1.default.addResources(language, 'common', values));
15
+ }, [i18nResources]);
16
+ return null;
17
+ };
18
+ exports.I18nManager = I18nManager;
19
+ exports.default = exports.I18nManager;
20
+ //# sourceMappingURL=I18nManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"I18nManager.js","sourceRoot":"","sources":["../../../src/components/I18nManager.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAA+B;AAC/B,iCAAuC;AACvC,6EAAqD;AACrD,kDAA+C;AAExC,MAAM,WAAW,GAAa,GAAG,EAAE;IACxC,MAAM,aAAa,GAAG,qBAAS,CAAC,MAAM,CAAC,CAAC;IAExC,iBAAS,CAAC,GAAG,EAAE;QACb,gBAAO,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,CAC1C,sBAAY,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CACtD,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,OAAO,IAAI,CAAC;AACd,CAAC,CAAA;AAVY,QAAA,WAAW,eAUvB;AAED,kBAAe,mBAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './I18nManager';
1
2
  export * from './EmptyComponent';
2
3
  export * from './hoc';
3
4
  export * from './SkipSSR';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  // export * from './FontChooser';
27
27
  // export * from './FontSizeChooser';
28
28
  // export * from './SubToolbar';
29
+ __exportStar(require("./I18nManager"), exports);
29
30
  __exportStar(require("./EmptyComponent"), exports);
30
31
  // export * from './BackgroundCho';
31
32
  __exportStar(require("./hoc"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,mDAAiC;AACjC,mCAAmC;AACnC,wCAAsB;AACtB,4CAA0B;AAE1B,4CAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,mCAAmC;AACnC,wCAAsB;AACtB,4CAA0B;AAE1B,4CAA4C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {