fix: add some unconfigured i18n text

This commit is contained in:
JackLian 2022-12-26 10:36:13 +08:00 committed by 刘菊萍(絮黎)
parent 163416fcfe
commit 56e9f04221
7 changed files with 33 additions and 17 deletions

View File

@ -3,7 +3,7 @@ import classNames from 'classnames';
import { computed, observer, Title } from '@alilc/lowcode-editor-core';
import { IPublicTypeTitleContent } from '@alilc/lowcode-types';
import { getClosestNode } from '@alilc/lowcode-utils';
import { intl } from '../../locale';
import { BuiltinSimulatorHost } from '../host';
@ -37,7 +37,7 @@ export class BorderDetectingInstance extends PureComponent<{
<div className={className} style={style}>
<Title title={title} className="lc-borders-title" />
{
isLocked ? (<Title title="已锁定" className="lc-borders-status" />) : null
isLocked ? (<Title title={intl('locked')} className="lc-borders-status" />) : null
}
</div>
);

View File

@ -5,5 +5,6 @@
"lock": "Lock",
"unlock": "Unlock",
"Condition Group": "Condition Group",
"No opened document": "No opened document, open some document to editing"
"No opened document": "No opened document, open some document to editing",
"locked": "locked"
}

View File

@ -5,5 +5,6 @@
"lock": "锁定",
"unlock": "解锁",
"Condition Group": "条件组",
"No opened document": "没有打开的页面,请选择页面打开编辑"
"No opened document": "没有打开的页面,请选择页面打开编辑",
"locked": "已锁定"
}

View File

@ -8,6 +8,7 @@ import { IPublicModelEditor, IPublicTypeTitleContent } from '@alilc/lowcode-type
import { PopupPipe, PopupContext } from '../popup';
import './index.less';
import InlineTip from './inlinetip';
import { intl } from '../../locale';
export interface FieldProps {
className?: string;
@ -106,22 +107,22 @@ export class Field extends Component<FieldProps> {
getTipContent(propName: string, tip?: any): any {
let tipContent = (
<div>
<div>{propName}</div>
<div>{intl('Attribute: ')}{propName}</div>
</div>
);
if (isObject(tip)) {
tipContent = (
<div>
<div>{propName}</div>
<div>{(tip as any).content}</div>
<div>{intl('Attribute: ')}{propName}</div>
<div>{intl('Description: ')}{(tip as any).content}</div>
</div>
);
} else if (tip) {
tipContent = (
<div>
<div>{propName}</div>
<div>{tip}</div>
<div>{intl('Attribute: ')}{propName}</div>
<div>{intl('Description: ')}{tip}</div>
</div>
);
}

View File

@ -7,6 +7,7 @@ import { SettingsMain } from './main';
import { SettingsPane } from './settings-pane';
import { StageBox } from '../stage-box';
import { SkeletonContext } from '../../context';
import { intl } from '../../locale';
import { createIcon, isSettingField } from '@alilc/lowcode-utils';
@observer
@ -137,7 +138,7 @@ export class SettingsPrimaryPane extends Component<{ engineEditor: Editor; confi
return (
<div className="lc-settings-main">
<div className="lc-settings-notice">
<p></p>
<p>{intl('Please select a node in canvas')}</p>
</div>
</div>
);
@ -148,7 +149,7 @@ export class SettingsPrimaryPane extends Component<{ engineEditor: Editor; confi
return (
<div className="lc-settings-main">
<div className="lc-settings-notice">
<p></p>
<p>{intl('Current node is locked')}</p>
</div>
</div>
);
@ -157,7 +158,7 @@ export class SettingsPrimaryPane extends Component<{ engineEditor: Editor; confi
return (
<div className="lc-settings-main">
<div className="lc-settings-notice">
<p></p>
<p>{intl('No config found for this type of component')}</p>
</div>
</div>
);
@ -168,7 +169,7 @@ export class SettingsPrimaryPane extends Component<{ engineEditor: Editor; confi
return (
<div className="lc-settings-main">
<div className="lc-settings-notice">
<p></p>
<p>{intl('Please select same kind of components')}</p>
</div>
</div>
);

View File

@ -5,5 +5,11 @@
"Multiple Value, Click to Clear": "Multiple Value, Click to Clear",
"Required": "Required",
"Setted Value, Click to Clear": "Setted Value, Click to Clear",
"Multiple Value": "Multiple Value"
"Multiple Value": "Multiple Value",
"Attribute: ": "Attribute: ",
"Description: ": "Description: ",
"Please select a node in canvas": "Please select a node in canvas",
"Current node is locked": "Current node is locked",
"No config found for this type of component": "No config found for this type of component",
"Please select same kind of components": "Please select same kind of components"
}

View File

@ -1,9 +1,15 @@
{
"Binded: {expr}": "已绑定: {expr}",
"Binded: {expr}": "已绑定{expr}",
"Variable Binding": "变量绑定",
"Switch Setter": "切换设置器",
"Multiple Value, Click to Clear": "多种值, 点击清除",
"Multiple Value, Click to Clear": "多种值点击清除",
"Required": "必填项",
"Setted Value, Click to Clear": "已设置值,点击清除",
"Multiple Value": "多种值"
"Multiple Value": "多种值",
"Attribute: ": "属性:",
"Description: ": "说明:",
"Please select a node in canvas": "请在左侧画布选中节点",
"Current node is locked": "该节点已被锁定,无法配置",
"No config found for this type of component": "该组件暂无配置",
"Please select same kind of components": "请选中同一类型节点编辑"
}