@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.cjs.js
CHANGED
|
@@ -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.
|
|
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);
|