翻译问题与管理员休息FormTab(Translation issue with admin-on-rest FormTab)
我有一个关于admin-on-rest的翻译问题。 当FormTab直接位于Edit组件的内部时,我的选项卡具有标签。
标签标题仅对第三个标签为空。 我有一个错误(MyCustomFormTab):
const EditComponent = props => ( <Edit {...props}> <TabbedForm> <FormTab label="tab Title" /> <FormTab label="Other Tab Title" /> <MyCustomFormTab /> </TabbedForm> </Edit> ) const MyCustomFormtab = props => ( <FormTab label="My Custom tab Title" /> )警告:密钥的翻译缺失:“未定义”
难道我做错了什么 ?
I've got a translation issue on admin-on-rest. My tabs have labels when FormTab are directly inside the Edit component.
The tab title is empty for the third one only. I've got an error (MyCustomFormTab) :
const EditComponent = props => ( <Edit {...props}> <TabbedForm> <FormTab label="tab Title" /> <FormTab label="Other Tab Title" /> <MyCustomFormTab /> </TabbedForm> </Edit> ) const MyCustomFormtab = props => ( <FormTab label="My Custom tab Title" /> )Warning: Missing translation for key: "undefined"
Am I doing something wrong ?
最满意答案
FormTab组件必须是FormTab组件的直接子项。
FormTab components must be direct children of the TabbedForm component.
更多推荐
发布评论