diff --git a/packages/amis-editor/package.json b/packages/amis-editor/package.json index dce7ab018..348c00999 100644 --- a/packages/amis-editor/package.json +++ b/packages/amis-editor/package.json @@ -1,6 +1,6 @@ { "name": "amis-editor", - "version": "5.2.0-i18n.7", + "version": "5.2.0-i18n.8", "description": "amis 可视化编辑器", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/amis-editor/src/renderer/event-control/actions.tsx b/packages/amis-editor/src/renderer/event-control/actions.tsx index f9c86b100..bf2ef58bc 100644 --- a/packages/amis-editor/src/renderer/event-control/actions.tsx +++ b/packages/amis-editor/src/renderer/event-control/actions.tsx @@ -16,6 +16,8 @@ import { SUPPORT_DISABLED_CMPTS } from './helper'; import {BaseLabelMark} from '../../component/BaseControl'; +import {i18n as _i18n} from 'i18n-runtime'; + const MSG_TYPES: {[key: string]: string} = { info: '提示', warning: '警告', @@ -204,7 +206,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => { } block > - 去配置 + {/* 翻译未生效,临时方案 */} + {_i18n('a532be3ad5f3fda70d228b8542e81835')} ) }, @@ -232,7 +235,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => { } block > - 去配置 + {/* 翻译未生效,临时方案 */} + {_i18n('a532be3ad5f3fda70d228b8542e81835')} ) } diff --git a/packages/amis-editor/src/renderer/event-control/index.tsx b/packages/amis-editor/src/renderer/event-control/index.tsx index 91e454c24..c540cb752 100644 --- a/packages/amis-editor/src/renderer/event-control/index.tsx +++ b/packages/amis-editor/src/renderer/event-control/index.tsx @@ -30,6 +30,7 @@ import { SubRendererPluginAction } from 'amis-editor-core'; export * from './helper'; +import {i18n as _i18n} from 'i18n-runtime'; interface EventControlProps extends FormControlProps { actions: PluginActions; // 组件的动作列表 @@ -828,7 +829,8 @@ export class EventControl extends React.Component< }) ) : (