diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 130f37ad0b5..64043c78d82 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -956,17 +956,17 @@ This procedure will improve precision of retrieval by adding more information to switch: 'Switch', logicalOperator: 'Logical operator', switchOperatorOptions: { - equal: 'equal', - notEqual: 'notEqual', + equal: 'Equals', + notEqual: 'Not equal', gt: 'Greater than', ge: 'Greater equal', lt: 'Less than', le: 'Less equal', contains: 'Contains', notContains: 'Not contains', - startWith: 'Start with', - endWith: 'End with', - empty: 'Empty', + startWith: 'Starts with', + endWith: 'Ends with', + empty: 'Is empty', notEmpty: 'Not empty', }, switchLogicOperatorOptions: { diff --git a/web/src/pages/flow/form/switch-form/index.tsx b/web/src/pages/flow/form/switch-form/index.tsx index 12fa90ae4a7..222a2baa388 100644 --- a/web/src/pages/flow/form/switch-form/index.tsx +++ b/web/src/pages/flow/form/switch-form/index.tsx @@ -10,9 +10,10 @@ import { } from '../../constant'; import { useBuildFormSelectOptions } from '../../form-hooks'; import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query'; -import { IOperatorForm, ISwitchForm } from '../../interface'; +import { IOperatorForm } from '../../interface'; import { getOtherFieldValues } from '../../utils'; +import { ISwitchForm } from '@/interfaces/database/flow'; import styles from './index.less'; const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => { @@ -88,7 +89,10 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => { ) } -