<AutocompleteInput source="gender" choices={choices} translateChoice={false}/>
const choices = [
{ id: 'M', name: 'myroot.gender.male' },
{ id: 'F', name: 'myroot.gender.female' },
];
翻译选项作为标识
<AutocompleteInput source="gender" choices={choices} translateChoice={false}/>
const choices = [
{ id: 'M', name: 'myroot.gender.male' },
{ id: 'F', name: 'myroot.gender.female' },
];
翻译选项作为标识