amis-saas-7483 国际化翻译

Change-Id: I92dd039d927ce5c4b3203af38b75a01ed304452e
This commit is contained in:
zhuwei11 2022-10-14 10:59:32 +08:00
parent afe2cd42c7
commit 7ba8000afc
4 changed files with 12 additions and 5 deletions

View File

@ -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",

View File

@ -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')}
</Button>
)
},
@ -232,7 +235,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
}
block
>
{/* 翻译未生效,临时方案 */}
{_i18n('a532be3ad5f3fda70d228b8542e81835')}
</Button>
)
}

View File

@ -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<
})
) : (
<div className="ae-event-control-placeholder">
{/* 翻译未生效,临时方案 */}
{_i18n('4db5110d41293fef57f5a1f364187896')}
</div>
)}
</ul>

View File

@ -237,7 +237,8 @@ function BoxBorder({
placeholder: '边框颜色',
clearable: true,
value: value[getKey('border', 'color')],
inputClassName: 'ae-border-colorpicker'
inputClassName: 'ae-border-colorpicker',
label: false,
},
{
onChange: changeItem('border', 'color')