@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.
@@ -1677,6 +1677,9 @@ var TolgeeConfig = /** @class */ (function () {
1677
1677
  if (this.watch === undefined) {
1678
1678
  this.watch = this.mode === 'development';
1679
1679
  }
1680
+ if (this.availableLanguages === undefined && this.staticData) {
1681
+ this.availableLanguages = Object.keys(this.staticData);
1682
+ }
1680
1683
  }
1681
1684
  return TolgeeConfig;
1682
1685
  }());
@@ -1734,7 +1737,7 @@ var PluginManager = /** @class */ (function () {
1734
1737
  this.handshake = function () {
1735
1738
  var sharedConfiguration = __assign(__assign({}, _this.properties), { config: __assign(__assign({}, _this.properties.config), {
1736
1739
  //remove properties, which cannot be sent by window.postMessage
1737
- staticData: undefined, targetElement: undefined, _targetElement: undefined, ui: undefined }), uiPresent: Boolean(_this.properties.config.ui), uiVersion: "3.5.0" });
1740
+ staticData: undefined, targetElement: undefined, _targetElement: undefined, ui: undefined }), uiPresent: Boolean(_this.properties.config.ui), uiVersion: "3.6.0" });
1738
1741
  var timer = null;
1739
1742
  var ping = function () {
1740
1743
  _this.messages.send('TOLGEE_READY', sharedConfiguration);