Skip to content

Commit 6998455

Browse files
authored
Fix: Translate the operator options of the Switch operator #1739 (#4519)
### What problem does this PR solve? Fix: Translate the operator options of the Switch operator #1739 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent 03d7a51 commit 6998455

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

web/src/locales/en.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -956,17 +956,17 @@ This procedure will improve precision of retrieval by adding more information to
956956
switch: 'Switch',
957957
logicalOperator: 'Logical operator',
958958
switchOperatorOptions: {
959-
equal: 'equal',
960-
notEqual: 'notEqual',
959+
equal: 'Equals',
960+
notEqual: 'Not equal',
961961
gt: 'Greater than',
962962
ge: 'Greater equal',
963963
lt: 'Less than',
964964
le: 'Less equal',
965965
contains: 'Contains',
966966
notContains: 'Not contains',
967-
startWith: 'Start with',
968-
endWith: 'End with',
969-
empty: 'Empty',
967+
startWith: 'Starts with',
968+
endWith: 'Ends with',
969+
empty: 'Is empty',
970970
notEmpty: 'Not empty',
971971
},
972972
switchLogicOperatorOptions: {

web/src/pages/flow/form/switch-form/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import {
1010
} from '../../constant';
1111
import { useBuildFormSelectOptions } from '../../form-hooks';
1212
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
13-
import { IOperatorForm, ISwitchForm } from '../../interface';
13+
import { IOperatorForm } from '../../interface';
1414
import { getOtherFieldValues } from '../../utils';
1515

16+
import { ISwitchForm } from '@/interfaces/database/flow';
1617
import styles from './index.less';
1718

1819
const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
@@ -88,7 +89,10 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
8889
)
8990
}
9091
</Form.Item>
91-
<Form.Item label={t('flow.to')} name={[field.name, 'to']}>
92+
<Form.Item
93+
label={t('flow.nextStep')}
94+
name={[field.name, 'to']}
95+
>
9296
<Select
9397
allowClear
9498
options={buildCategorizeToOptions([

0 commit comments

Comments
 (0)