antd protable unable to change language to english

Viewed 747

Hi I am using antd protable to display data and even though i have defined the default language as English for some of the parts it is still showing Chinese

import ProTable, { IntlProvider, enUSIntl } from '@ant-design/pro-table';

  <IntlProvider value={enUSIntl}>
    <ProTable
     scroll={{ x: 1300 }}
     options={{ fullScreen: false, reload: true, setting: true }}
     request={allCustomers}
     columns={columns}
     />
   </IntlProvider>

Everything else is changes to English except the pagination information.

Please help

image

1 Answers

Resolved the issue by updating antd protable version to 2.3.1

edit

If you are not still not able to resolve it by updating antd protable version to 2.3.1, Try this

 <ProTable
...otherProps
 pagination={{
  showTotal: (total, range) => (
  <div>{`Showing ${range[0]}-${range[1]} of ${total} total items`}</div>     
     ),
       }}
/>

Related