@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.
- package/README.md +1 -1
- package/dist/I18n/I18n.js +5 -1
- package/dist/I18n/I18n.js.map +1 -1
- package/dist/{I18n-DDRri5uR.js → I18n-DmYkVPZM.js} +6 -2
- package/dist/I18n-DmYkVPZM.js.map +1 -0
- package/dist/{I18n-qeRA3rLa.js → I18n-zYe_O_Pr.js} +6 -2
- package/dist/I18n-zYe_O_Pr.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 +7 -2
- package/dist/I18n-DDRri5uR.js.map +0 -1
- package/dist/I18n-qeRA3rLa.js.map +0 -1
@@ -3292,7 +3292,11 @@ const initI18n = _ref => {
|
|
3292
3292
|
};
|
3293
3293
|
}
|
3294
3294
|
if (!instance.isInitialized) {
|
3295
|
-
|
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-
|
3311
|
+
//# sourceMappingURL=I18n-zYe_O_Pr.js.map
|