File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/ui/src/elements/WhereBuilder/Condition Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import type { Option } from '../../ReactSelect/index.js'
43
43
44
44
import { RenderCustomClientComponent } from '../../../elements/RenderCustomClientComponent/index.js'
45
45
import { useDebounce } from '../../../hooks/useDebounce.js'
46
+ import { useTranslation } from '../../../providers/Translation/index.js'
46
47
import { Button } from '../../Button/index.js'
47
48
import { ReactSelect } from '../../ReactSelect/index.js'
48
49
import { DateField } from './Date/index.js'
@@ -78,6 +79,7 @@ export const Condition: React.FC<Props> = (props) => {
78
79
const [ internalField , setInternalField ] = useState < FieldCondition > ( ( ) =>
79
80
fields . find ( ( field ) => fieldName === field . value ) ,
80
81
)
82
+ const { t } = useTranslation ( )
81
83
const [ internalOperatorOption , setInternalOperatorOption ] = useState < Operator > ( operator )
82
84
const [ internalQueryValue , setInternalQueryValue ] = useState < string > ( initialValue )
83
85
@@ -116,7 +118,7 @@ export const Condition: React.FC<Props> = (props) => {
116
118
117
119
let valueOptions
118
120
if ( booleanSelect ) {
119
- valueOptions = [ ' true', ' false']
121
+ valueOptions = [ t ( 'general: true') , t ( 'general: false') ]
120
122
} else if ( internalField ?. props && 'options' in internalField . props ) {
121
123
valueOptions = internalField . props . options
122
124
}
You can’t perform that action at this time.
0 commit comments