@evlop/commons 1.0.151 → 1.0.152
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handlebarHelpers.js","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.ts"],"names":[],"mappings":";;;;;AAAA,0FAA2D;AAC3D,oDAA4B;AAC5B,mCAA+B;
|
1
|
+
{"version":3,"file":"handlebarHelpers.js","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.ts"],"names":[],"mappings":";;;;;AAAA,0FAA2D;AAC3D,oDAA4B;AAC5B,mCAA+B;AAC/B,6EAAqD;AAErD,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,OAAO;IAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,IAAI,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM;IACrE,MAAM,UAAU,GAAW,OAAO,MAAM,KAAK,QAAQ,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACtE,MAAM,UAAU,GAAG,gBAAM,CAAC,IAAI,CAAC,CAAC;IAChC,IAAG,CAAC,UAAU,CAAC,OAAO,EAAE;QAAE,OAAO,IAAI,CAAC;IACtC,QAAO,UAAU,EAAC;QACd,KAAK,UAAU;YACX,OAAO,UAAU,CAAC,OAAO,EAAE,CAAC;QAChC;YACI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KAC5C;AACL,CAAC,CAAC,CAAC;AAEH,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,GAAG,MAAqB;IAC/D,OAAO,gBAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,eAAe,CAAC;AACjC,2BAAU,CAAC,cAAc,CAAC,WAAW,EAAE,UAAS,OAAe;IAC3D,IAAG,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACvB,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC;AAEH,iCAAiC;AACjC,2BAAU,CAAC,cAAc,CAAC,GAAG,EAAE,UAAS,GAAW,EAAE,OAAY;IAC7D,OAAO,sBAAY,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EA+ChC,CAAA;AAED,eAAe,YAAY,CAAC"}
|
@@ -52,7 +52,7 @@ const I18nProvider = ({ children }) => {
|
|
52
52
|
return () => i18ninstance_1.default.off("languageChanged", languageChangeHandeller);
|
53
53
|
}, [setLanguage]);
|
54
54
|
react_1.useEffect(() => {
|
55
|
-
const resourceChangeHandeller = () => setVersion(Date.now());
|
55
|
+
const resourceChangeHandeller = lodash_1.debounce(() => setVersion(Date.now()), 200);
|
56
56
|
i18ninstance_1.default.on("added", resourceChangeHandeller);
|
57
57
|
i18ninstance_1.default.on("removed", resourceChangeHandeller);
|
58
58
|
return () => {
|
@@ -62,6 +62,7 @@ const I18nProvider = ({ children }) => {
|
|
62
62
|
}, []);
|
63
63
|
react_1.useEffect(() => {
|
64
64
|
lodash_1.forEach(i18nResources, (values, language) => i18ninstance_1.default.addResources(language, 'common', values));
|
65
|
+
setVersion(Date.now());
|
65
66
|
}, [i18nResources]);
|
66
67
|
const i18nScope = react_1.useMemo(() => ({ v: version, language }), [version, language]);
|
67
68
|
return (react_1.default.createElement(Scope_1.ScopeProvider, { name: "i18n", value: i18nScope }, children));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"I18nProvider.js","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"I18nProvider.js","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAyC;AACzC,+CAAuE;AACvE,6CAAqD;AACrD,6EAAqD;AACrD,kDAA+C;AAC/C,0CAA8C;AAC9C,mCAAwC;AAEjC,MAAM,YAAY,GAAa,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,qBAAS,CAAC,MAAM,CAAC,CAAC;IAExC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,gBAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,yBAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,MAAM,WAAW,GAAG,mBAAW,CAAC,CAAC,GAAW,EAAC,EAAE,CAAA,QAAQ,CAAC,0BAAe,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEtG,iBAAS,CAAC,GAAE,EAAE;QACZ,IAAG,Q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