@andre1502/react-utilities 0.9.5 → 0.9.6

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.
@@ -3292,7 +3292,11 @@ const initI18n = _ref => {
3292
3292
  };
3293
3293
  }
3294
3294
  if (!instance.isInitialized) {
3295
- instance.use(Backend$1).use(languageDetector).use(initReactI18next) // passes i18n down to react-i18next
3295
+ let i18n = instance;
3296
+ if (useBackend) {
3297
+ i18n = i18n.use(Backend$1);
3298
+ }
3299
+ i18n.use(languageDetector).use(initReactI18next) // passes i18n down to react-i18next
3296
3300
  .init(config, (ex, t) => {
3297
3301
  if (ex) {
3298
3302
  console.error(`Error when i18n init`, ex);
@@ -3304,4 +3308,4 @@ const initI18n = _ref => {
3304
3308
 
3305
3309
  exports.getV = getV;
3306
3310
  exports.initI18n = initI18n;
3307
- //# sourceMappingURL=I18n-qeRA3rLa.js.map
3311
+ //# sourceMappingURL=I18n-zYe_O_Pr.js.map