@evlop/commons 1.0.134 → 1.0.137
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bin/generate-icons-type.d.ts +2 -0
- package/dist/bin/generate-icons-type.d.ts.map +1 -0
- package/dist/bin/generate-icons-type.js +29 -0
- package/dist/bin/generate-icons-type.js.map +1 -0
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +0 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/constants/iconInfo/index.d.ts +4 -2
- package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/index.js +2 -1
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +1 -32
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/constants/iconInfo/types.d.ts +38 -0
- package/dist/src/constants/iconInfo/types.d.ts.map +1 -0
- package/dist/src/constants/iconInfo/types.js +3 -0
- package/dist/src/constants/iconInfo/types.js.map +1 -0
- package/dist/src/constants/index.d.ts +2 -2
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js +1 -2
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/providers/I18nProvider.d.ts +4 -0
- package/dist/src/providers/I18nProvider.d.ts.map +1 -0
- package/dist/src/providers/I18nProvider.js +55 -0
- package/dist/src/providers/I18nProvider.js.map +1 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/providers/index.d.ts.map +1 -1
- package/dist/src/providers/index.js +1 -0
- package/dist/src/providers/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/generateIcons.d.ts +0 -2
- package/dist/generateIcons.d.ts.map +0 -1
- package/dist/generateIcons.js +0 -13
- package/dist/generateIcons.js.map +0 -1
- package/dist/src/components/I18nManager.d.ts +0 -4
- package/dist/src/components/I18nManager.d.ts.map +0 -1
- package/dist/src/components/I18nManager.js +0 -20
- package/dist/src/components/I18nManager.js.map +0 -1
@@ -1,20 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|