React Admin界面仅显示翻译键

时间:2019-02-19 12:52:46

标签: react-admin

我正在构建一个反应管理应用程序,但是翻译似乎有问题,我只看到标准元素的翻译键 Translation keys

import React from 'react';
import { Admin, Resource, ListGuesser } from 'react-admin';
import fakeDataProvider from 'ra-data-fakerest';

const fakeData = {
    region: [
        { name: "A" }, { name: "B" }
    ]
}

const dataProvider = fakeDataProvider({ region: fakeData.region }, true);

class App2 extends React.Component<{}, {}> {

    render() {
        return <Admin dataProvider={dataProvider}>
            <Resource name="region" list={ListGuesser} />
        </Admin>
    }
}

export default App2;

0 个答案:

没有答案