@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.
- package/lib/app/ReactApp.js +5 -3
- package/package.json +1 -1
- package/src/app/ReactApp.ts +4 -0
package/lib/app/ReactApp.js
CHANGED
|
@@ -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 = (
|
|
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
package/src/app/ReactApp.ts
CHANGED
|
@@ -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
|
}
|