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 { computed, observer, Title } from '@alilc/lowcode-editor-core';
import { IPublicTypeTitleContent } from '@alilc/lowcode-types'; import { IPublicTypeTitleContent } from '@alilc/lowcode-types';
import { getClosestNode } from '@alilc/lowcode-utils'; import { getClosestNode } from '@alilc/lowcode-utils';
import { intl } from '../../locale';
import { BuiltinSimulatorHost } from '../host'; import { BuiltinSimulatorHost } from '../host';
@ -37,7 +37,7 @@ export class BorderDetectingInstance extends PureComponent<{
<div className={className} style={style}> <div className={className} style={style}>
<Title title={title} className="lc-borders-title" /> <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> </div>
); );

View File

@ -5,5 +5,6 @@
"lock": "Lock", "lock": "Lock",
"unlock": "Unlock", "unlock": "Unlock",
"Condition Group": "Condition Group", "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": "锁定", "lock": "锁定",
"unlock": "解锁", "unlock": "解锁",
"Condition Group": "条件组", "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 { PopupPipe, PopupContext } from '../popup';
import './index.less'; import './index.less';
import InlineTip from './inlinetip'; import InlineTip from './inlinetip';
import { intl } from '../../locale';
export interface FieldProps { export interface FieldProps {
className?: string; className?: string;
@ -106,22 +107,22 @@ export class Field extends Component<FieldProps> {
getTipContent(propName: string, tip?: any): any { getTipContent(propName: string, tip?: any): any {
let tipContent = ( let tipContent = (
<div> <div>
<div>{propName}</div> <div>{intl('Attribute: ')}{propName}</div>
</div> </div>
); );
if (isObject(tip)) { if (isObject(tip)) {
tipContent = ( tipContent = (
<div> <div>
<div>{propName}</div> <div>{intl('Attribute: ')}{propName}</div>
<div>{(tip as any).content}</div> <div>{intl('Description: ')}{(tip as any).content}</div>
</div> </div>
); );
} else if (tip) { } else if (tip) {
tipContent = ( tipContent = (
<div> <div>
<div>{propName}</div> <div>{intl('Attribute: ')}{propName}</div>
<div>{tip}</div> <div>{intl('Description: ')}{tip}</div>
</div> </div>
); );
} }

View File

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

View File

@ -5,5 +5,11 @@
"Multiple Value, Click to Clear": "Multiple Value, Click to Clear", "Multiple Value, Click to Clear": "Multiple Value, Click to Clear",
"Required": "Required", "Required": "Required",
"Setted Value, Click to Clear": "Setted Value, Click to Clear", "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": "变量绑定", "Variable Binding": "变量绑定",
"Switch Setter": "切换设置器", "Switch Setter": "切换设置器",
"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": "多种值",
"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": "请选中同一类型节点编辑"
} }