@etsoo/react 1.4.96 → 1.4.97

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.
@@ -1,4 +1,4 @@
1
- import { ActionResultError, CoreApp, createClient } from '@etsoo/appscript';
1
+ import { ActionResultError, BridgeUtils, CoreApp, createClient } from '@etsoo/appscript';
2
2
  import { WindowStorage } from '@etsoo/shared';
3
3
  import React from 'react';
4
4
  import { NotifierMU } from '../mu/NotifierMU';
@@ -110,7 +110,7 @@ export class ReactApp extends CoreApp {
110
110
  * @param culture New culture definition
111
111
  */
112
112
  changeCulture(culture) {
113
- var _a;
113
+ var _a, _b;
114
114
  // Super call to update cultrue
115
115
  super.changeCulture(culture);
116
116
  // Update component labels
@@ -126,8 +126,10 @@ export class ReactApp extends CoreApp {
126
126
  promptOK: 'ok'
127
127
  }
128
128
  });
129
+ // Notify host
130
+ (_a = BridgeUtils.host) === null || _a === void 0 ? void 0 : _a.changeCulture(culture.name);
129
131
  // Document title
130
- document.title = (_a = this.get(this.name)) !== null && _a !== void 0 ? _a : this.name;
132
+ document.title = (_b = this.get(this.name)) !== null && _b !== void 0 ? _b : this.name;
131
133
  }
132
134
  /**
133
135
  * Change culture extended
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.96",
3
+ "version": "1.4.97",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ActionResultError,
3
+ BridgeUtils,
3
4
  CoreApp,
4
5
  createClient,
5
6
  IActionResult,
@@ -271,6 +272,9 @@ export class ReactApp<
271
272
  }
272
273
  });
273
274
 
275
+ // Notify host
276
+ BridgeUtils.host?.changeCulture(culture.name);
277
+
274
278
  // Document title
275
279
  document.title = this.get(this.name) ?? this.name;
276
280
  }