i18next-fs-backend
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -59,3 +59,3 @@ "use strict"; | ||
}); | ||
if (this.allOptions.initImmediate === false) { | ||
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) { | ||
try { | ||
@@ -62,0 +62,0 @@ var _readFileSync = (0, _readFile.readFileSync)(filename, this.options), |
@@ -53,3 +53,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
}); | ||
if (this.allOptions.initImmediate === false) { | ||
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) { | ||
try { | ||
@@ -56,0 +56,0 @@ var _readFileSync = readFileSync(filename, this.options), |
@@ -39,3 +39,3 @@ import { defaults, debounce, getPath, setPath, pushPath } from './utils.js' | ||
const filename = this.services.interpolator.interpolate(loadPath, { lng: language, ns: namespace }) | ||
if (this.allOptions.initImmediate === false) { | ||
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) { | ||
try { | ||
@@ -42,0 +42,0 @@ const { data, stat } = readFileSync(filename, this.options) |
{ | ||
"name": "i18next-fs-backend", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"private": false, | ||
@@ -45,3 +45,3 @@ "type": "module", | ||
"expect.js": "0.3.1", | ||
"i18next": "23.16.6", | ||
"i18next": "24.0.0", | ||
"js-yaml": "4.1.0", | ||
@@ -48,0 +48,0 @@ "jsonc-parser": "3.3.1", |
@@ -112,3 +112,3 @@ # Introduction | ||
# If set i18next initImmediate option to false it will load the files synchronously | ||
# If set i18next initAsync option to false it will load the files synchronously | ||
@@ -125,3 +125,3 @@ ```js | ||
// debug: true, | ||
initImmediate: false, | ||
initAsync: false, | ||
fallbackLng: 'en', | ||
@@ -128,0 +128,0 @@ lng: 'en', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
662911