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", "name": "amis-editor",
"version": "5.2.0-i18n.7", "version": "5.2.0-i18n.8",
"description": "amis 可视化编辑器", "description": "amis 可视化编辑器",
"main": "lib/index.js", "main": "lib/index.js",
"module": "esm/index.js", "module": "esm/index.js",

View File

@ -16,6 +16,8 @@ import {
SUPPORT_DISABLED_CMPTS SUPPORT_DISABLED_CMPTS
} from './helper'; } from './helper';
import {BaseLabelMark} from '../../component/BaseControl'; import {BaseLabelMark} from '../../component/BaseControl';
import {i18n as _i18n} from 'i18n-runtime';
const MSG_TYPES: {[key: string]: string} = { const MSG_TYPES: {[key: string]: string} = {
info: '提示', info: '提示',
warning: '警告', warning: '警告',
@ -204,7 +206,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
} }
block block
> >
{/* 翻译未生效,临时方案 */}
{_i18n('a532be3ad5f3fda70d228b8542e81835')}
</Button> </Button>
) )
}, },
@ -232,7 +235,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
} }
block block
> >
{/* 翻译未生效,临时方案 */}
{_i18n('a532be3ad5f3fda70d228b8542e81835')}
</Button> </Button>
) )
} }

View File

@ -30,6 +30,7 @@ import {
SubRendererPluginAction SubRendererPluginAction
} from 'amis-editor-core'; } from 'amis-editor-core';
export * from './helper'; export * from './helper';
import {i18n as _i18n} from 'i18n-runtime';
interface EventControlProps extends FormControlProps { interface EventControlProps extends FormControlProps {
actions: PluginActions; // 组件的动作列表 actions: PluginActions; // 组件的动作列表
@ -828,7 +829,8 @@ export class EventControl extends React.Component<
}) })
) : ( ) : (
<div className="ae-event-control-placeholder"> <div className="ae-event-control-placeholder">
{/* 翻译未生效,临时方案 */}
{_i18n('4db5110d41293fef57f5a1f364187896')}
</div> </div>
)} )}
</ul> </ul>

View File

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