@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.
@@ -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.5.0" });
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);