@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.
- package/README.md +1 -1
- package/dist/I18n/I18n.js +9 -1
- package/dist/I18n/I18n.js.map +1 -1
- package/dist/{I18n-DDRri5uR.js → I18n-BIBLVzaQ.js} +11 -2
- package/dist/I18n-BIBLVzaQ.js.map +1 -0
- package/dist/{I18n-qeRA3rLa.js → I18n-tdxuTc45.js} +11 -2
- package/dist/I18n-tdxuTc45.js.map +1 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.mjs +1 -1
- package/dist/index-rn.cjs +1 -1
- package/dist/index-rn.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/I18n/I18n.ts +12 -2
- package/dist/I18n-DDRri5uR.js.map +0 -1
- package/dist/I18n-qeRA3rLa.js.map +0 -1
@@ -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
|
-
|
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-
|
3316
|
+
//# sourceMappingURL=I18n-tdxuTc45.js.map
|