mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
fix: missing i18n parameter in simulater and renderer
This commit is contained in:
parent
6d4ca29466
commit
fc7c217f8c
@ -6,6 +6,7 @@ import {
|
|||||||
getPublicPath,
|
getPublicPath,
|
||||||
focusTracker,
|
focusTracker,
|
||||||
engineConfig,
|
engineConfig,
|
||||||
|
globalLocale,
|
||||||
IReactionPublic,
|
IReactionPublic,
|
||||||
IReactionOptions,
|
IReactionOptions,
|
||||||
IReactionDisposer,
|
IReactionDisposer,
|
||||||
@ -198,7 +199,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
}
|
}
|
||||||
|
|
||||||
@computed get locale(): string {
|
@computed get locale(): string {
|
||||||
return this.get('locale');
|
return this.get('locale') || globalLocale.getLocale();
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed get deviceClassName(): string | undefined {
|
@computed get deviceClassName(): string | undefined {
|
||||||
|
|||||||
@ -461,6 +461,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
|||||||
locale: renderer.locale,
|
locale: renderer.locale,
|
||||||
messages: _schema.i18n || {},
|
messages: _schema.i18n || {},
|
||||||
device: renderer.device,
|
device: renderer.device,
|
||||||
|
locale: renderer.locale,
|
||||||
appHelper: renderer.context,
|
appHelper: renderer.context,
|
||||||
rendererName: 'LowCodeRenderer',
|
rendererName: 'LowCodeRenderer',
|
||||||
thisRequiredInJSE: host.thisRequiredInJSE,
|
thisRequiredInJSE: host.thisRequiredInJSE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user