@tolgee/core 3.5.0 → 3.6.0
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/dist/tolgee.cjs.js +4 -1
- package/dist/tolgee.cjs.js.map +1 -1
- package/dist/tolgee.cjs.min.js +1 -1
- package/dist/tolgee.cjs.min.js.map +1 -1
- package/dist/tolgee.esm.js +1 -1
- package/dist/tolgee.esm.js.map +1 -1
- package/dist/tolgee.umd.js +4 -1
- package/dist/tolgee.umd.js.map +1 -1
- package/dist/tolgee.umd.min.js +1 -1
- package/dist/tolgee.umd.min.js.map +1 -1
- package/lib/TolgeeConfig.js +3 -0
- package/lib/TolgeeConfig.js.map +1 -1
- package/package.json +3 -3
package/dist/tolgee.umd.js
CHANGED
|
@@ -1679,6 +1679,9 @@
|
|
|
1679
1679
|
if (this.watch === undefined) {
|
|
1680
1680
|
this.watch = this.mode === 'development';
|
|
1681
1681
|
}
|
|
1682
|
+
if (this.availableLanguages === undefined && this.staticData) {
|
|
1683
|
+
this.availableLanguages = Object.keys(this.staticData);
|
|
1684
|
+
}
|
|
1682
1685
|
}
|
|
1683
1686
|
return TolgeeConfig;
|
|
1684
1687
|
}());
|
|
@@ -1736,7 +1739,7 @@
|
|
|
1736
1739
|
this.handshake = function () {
|
|
1737
1740
|
var sharedConfiguration = __assign(__assign({}, _this.properties), { config: __assign(__assign({}, _this.properties.config), {
|
|
1738
1741
|
//remove properties, which cannot be sent by window.postMessage
|
|
1739
|
-
staticData: undefined, targetElement: undefined, _targetElement: undefined, ui: undefined }), uiPresent: Boolean(_this.properties.config.ui), uiVersion: "3.
|
|
1742
|
+
staticData: undefined, targetElement: undefined, _targetElement: undefined, ui: undefined }), uiPresent: Boolean(_this.properties.config.ui), uiVersion: "3.6.0" });
|
|
1740
1743
|
var timer = null;
|
|
1741
1744
|
var ping = function () {
|
|
1742
1745
|
_this.messages.send('TOLGEE_READY', sharedConfiguration);
|