locizify 9.0.1 → 9.0.2
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/CHANGELOG.md +4 -0
- package/dist/umd/locizify.js +5 -3
- package/dist/umd/locizify.min.js +2 -2
- package/locizify.js +5 -3
- package/locizify.min.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/umd/locizify.js
CHANGED
|
@@ -7777,7 +7777,7 @@
|
|
|
7777
7777
|
this.isProjectNotExisting = true;
|
|
7778
7778
|
}
|
|
7779
7779
|
if (this.isProjectNotExisting) {
|
|
7780
|
-
callback(new Error(this.isProjectNotExistingErrorMessage));
|
|
7780
|
+
callback(new Error(this.isProjectNotExistingErrorMessage || "locize project ".concat(this.options.projectId, " does not exist!")));
|
|
7781
7781
|
return deferred;
|
|
7782
7782
|
}
|
|
7783
7783
|
this.getLanguagesCalls = this.getLanguagesCalls || [];
|
|
@@ -7786,7 +7786,6 @@
|
|
|
7786
7786
|
this.loadUrl({}, url, function (err, ret, info) {
|
|
7787
7787
|
if (!_this3.somethingLoaded && info && info.resourceNotExisting) {
|
|
7788
7788
|
_this3.isProjectNotExisting = true;
|
|
7789
|
-
_this3.storage.setProjectNotExisting(_this3.options.projectId);
|
|
7790
7789
|
var errMsg = "locize project ".concat(_this3.options.projectId, " does not exist!");
|
|
7791
7790
|
_this3.isProjectNotExistingErrorMessage = errMsg;
|
|
7792
7791
|
var cdnTypeAlt = _this3.options.cdnType === 'standard' ? 'pro' : 'standard';
|
|
@@ -7798,6 +7797,9 @@
|
|
|
7798
7797
|
if (!errAlt && retAlt && (!infoAlt || !infoAlt.resourceNotExisting)) {
|
|
7799
7798
|
errMsg += " It seems you're using the wrong cdnType. Your locize project is configured to use \"".concat(cdnTypeAlt, "\" but here you've configured \"").concat(_this3.options.cdnType, "\".");
|
|
7800
7799
|
_this3.isProjectNotExistingErrorMessage = errMsg;
|
|
7800
|
+
} else if (!_this3.somethingLoaded && infoAlt && infoAlt.resourceNotExisting) {
|
|
7801
|
+
_this3.isProjectNotExisting = true;
|
|
7802
|
+
_this3.storage.setProjectNotExisting(_this3.options.projectId);
|
|
7801
7803
|
}
|
|
7802
7804
|
var e = new Error(errMsg);
|
|
7803
7805
|
var clbs = _this3.getLanguagesCalls;
|
|
@@ -7946,7 +7948,7 @@
|
|
|
7946
7948
|
this.isProjectNotExisting = true;
|
|
7947
7949
|
}
|
|
7948
7950
|
if (this.isProjectNotExisting) {
|
|
7949
|
-
var err = new Error(this.isProjectNotExistingErrorMessage);
|
|
7951
|
+
var err = new Error(this.isProjectNotExistingErrorMessage || "locize project ".concat(this.options.projectId, " does not exist!"));
|
|
7950
7952
|
if (logger) logger.error(err.message);
|
|
7951
7953
|
if (callback) callback(err);
|
|
7952
7954
|
return;
|