mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +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,
|
||||
focusTracker,
|
||||
engineConfig,
|
||||
globalLocale,
|
||||
IReactionPublic,
|
||||
IReactionOptions,
|
||||
IReactionDisposer,
|
||||
@ -198,7 +199,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
}
|
||||
|
||||
@computed get locale(): string {
|
||||
return this.get('locale');
|
||||
return this.get('locale') || globalLocale.getLocale();
|
||||
}
|
||||
|
||||
@computed get deviceClassName(): string | undefined {
|
||||
|
||||
@ -461,6 +461,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
locale: renderer.locale,
|
||||
messages: _schema.i18n || {},
|
||||
device: renderer.device,
|
||||
locale: renderer.locale,
|
||||
appHelper: renderer.context,
|
||||
rendererName: 'LowCodeRenderer',
|
||||
thisRequiredInJSE: host.thisRequiredInJSE,
|
||||
@ -632,4 +633,4 @@ function getLowCodeComponentProps(props: any) {
|
||||
return newProps;
|
||||
}
|
||||
|
||||
export default new SimulatorRendererContainer();
|
||||
export default new SimulatorRendererContainer();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user