@andre1502/react-utilities 0.9.5 → 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.
@@ -3290,9 +3290,18 @@ const initI18n = _ref => {
3290
3290
  bindI18nStore: 'added' // this way, when the HttpBackend delivers new translations (thanks to refreshAndUpdateStore), the UI gets updated
3291
3291
  }
3292
3292
  };
3293
+ } else {
3294
+ config = {
3295
+ ...config,
3296
+ resources: resources
3297
+ };
3293
3298
  }
3294
3299
  if (!instance.isInitialized) {
3295
- instance.use(Backend$1).use(languageDetector).use(initReactI18next) // passes i18n down to react-i18next
3300
+ let i18n = instance;
3301
+ if (useBackend) {
3302
+ i18n = i18n.use(Backend$1);
3303
+ }
3304
+ i18n.use(languageDetector).use(initReactI18next) // passes i18n down to react-i18next
3296
3305
  .init(config, (ex, t) => {
3297
3306
  if (ex) {
3298
3307
  console.error(`Error when i18n init`, ex);
@@ -3304,4 +3313,4 @@ const initI18n = _ref => {
3304
3313
 
3305
3314
  exports.getV = getV;
3306
3315
  exports.initI18n = initI18n;
3307
- //# sourceMappingURL=I18n-qeRA3rLa.js.map
3316
+ //# sourceMappingURL=I18n-tdxuTc45.js.map