1

I am integrating antd's pro-components, specifically @ant-design/pro-layout according to their document. I have converted all Chinese text to English except text in SettingDrawer component. Screenshot attached

Here is the playground https://codesandbox.io/s/ji-chu-shi-yong-forked-lxtxqp (Note: open the output to a new window otherwise it wouldn't work).

One additional piece of info is that antd's original playground does not work as it missed to import the required CSS. Need to import the following

import "antd/dist/antd.css";

enter image description here

Premchandra Singh
  • 14,156
  • 4
  • 31
  • 37

1 Answers1

0

You can change the language globally by using ConfigProvider

See Doc: https://ant.design/docs/react/i18n#configprovider

import { ConfigProvider } from 'antd';
import frFR from 'antd/locale/fr_FR';

return (
  <ConfigProvider locale={frFR}>
    <App />
  </ConfigProvider>
);
myckhel
  • 800
  • 3
  • 15
  • 29