Sfoglia il codice sorgente

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)
tags/v0.16.0
balibabu 9 mesi fa
parent
commit
69984554a5
Nessun account collegato all'indirizzo email del committer
2 ha cambiato i file con 11 aggiunte e 7 eliminazioni
  1. 5
    5
      web/src/locales/en.ts
  2. 6
    2
      web/src/pages/flow/form/switch-form/index.tsx

+ 5
- 5
web/src/locales/en.ts Vedi File

@@ -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: {

+ 6
- 2
web/src/pages/flow/form/switch-form/index.tsx Vedi File

@@ -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) => {
)
}
</Form.Item>
<Form.Item label={t('flow.to')} name={[field.name, 'to']}>
<Form.Item
label={t('flow.nextStep')}
name={[field.name, 'to']}
>
<Select
allowClear
options={buildCategorizeToOptions([

Loading…
Annulla
Salva