@andre1502/react-utilities 0.9.6 → 0.9.7

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/i18n.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
4
- var I18n = require('./I18n-zYe_O_Pr.js');
4
+ var I18n = require('./I18n-tdxuTc45.js');
5
5
  require('cross-fetch');
6
6
 
7
7
 
package/dist/i18n.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
2
- export { g as getV, i as initI18n } from './I18n-DmYkVPZM.js';
2
+ export { g as getV, i as initI18n } from './I18n-BIBLVzaQ.js';
3
3
  import 'cross-fetch';
4
4
  //# sourceMappingURL=i18n.mjs.map
package/dist/index-rn.cjs CHANGED
@@ -29,7 +29,7 @@ require('@formatjs/intl-datetimeformat/locale-data/zh');
29
29
  require('@formatjs/intl-datetimeformat/polyfill');
30
30
  require('@formatjs/intl-datetimeformat/add-golden-tz.js');
31
31
  var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
32
- var I18n = require('./I18n-zYe_O_Pr.js');
32
+ var I18n = require('./I18n-tdxuTc45.js');
33
33
  var ReactNative = require('./ReactNative-CqUrY2ZJ.js');
34
34
  require('@formatjs/intl-numberformat');
35
35
  require('cross-fetch');
package/dist/index-rn.mjs CHANGED
@@ -27,7 +27,7 @@ import '@formatjs/intl-datetimeformat/locale-data/zh';
27
27
  import '@formatjs/intl-datetimeformat/polyfill';
28
28
  import '@formatjs/intl-datetimeformat/add-golden-tz.js';
29
29
  export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
30
- export { g as getV, i as initI18n } from './I18n-DmYkVPZM.js';
30
+ export { g as getV, i as initI18n } from './I18n-BIBLVzaQ.js';
31
31
  export { i as initSentry, r as recordAdditionalSentryHttp } from './ReactNative-mNnws-b5.js';
32
32
  import '@formatjs/intl-numberformat';
33
33
  import 'cross-fetch';
package/dist/index.cjs CHANGED
@@ -29,7 +29,7 @@ require('@formatjs/intl-datetimeformat/locale-data/zh');
29
29
  require('@formatjs/intl-datetimeformat/polyfill');
30
30
  require('@formatjs/intl-datetimeformat/add-golden-tz.js');
31
31
  var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
32
- var I18n = require('./I18n-zYe_O_Pr.js');
32
+ var I18n = require('./I18n-tdxuTc45.js');
33
33
  var React = require('./React-qUl0CBmE.js');
34
34
  require('@formatjs/intl-numberformat');
35
35
  require('cross-fetch');
package/dist/index.mjs CHANGED
@@ -27,7 +27,7 @@ import '@formatjs/intl-datetimeformat/locale-data/zh';
27
27
  import '@formatjs/intl-datetimeformat/polyfill';
28
28
  import '@formatjs/intl-datetimeformat/add-golden-tz.js';
29
29
  export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
30
- export { g as getV, i as initI18n } from './I18n-DmYkVPZM.js';
30
+ export { g as getV, i as initI18n } from './I18n-BIBLVzaQ.js';
31
31
  export { i as initSentry, r as recordAdditionalSentryHttp } from './React-BaJ1KfGF.js';
32
32
  import '@formatjs/intl-numberformat';
33
33
  import 'cross-fetch';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andre1502/react-utilities",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "module to combine common functions",
5
5
  "repository": {
6
6
  "type": "git",
package/src/I18n/I18n.ts CHANGED
@@ -116,6 +116,11 @@ const initI18n = ({
116
116
  bindI18nStore: 'added', // this way, when the HttpBackend delivers new translations (thanks to refreshAndUpdateStore), the UI gets updated
117
117
  },
118
118
  };
119
+ } else {
120
+ config = {
121
+ ...config,
122
+ resources: resources,
123
+ };
119
124
  }
120
125
 
121
126
  if (!i18next.isInitialized) {