关闭i18

1、找到defaultSettings.ts文件
简化 - 图1

2、设置menu.locale为false

  1. import { Settings as ProSettings } from '@ant-design/pro-layout';
  2. type DefaultSettings = ProSettings & {
  3. pwa: boolean;
  4. };
  5. const proSettings: DefaultSettings = {
  6. navTheme: 'dark',
  7. // 拂晓蓝
  8. primaryColor: '#1890ff',
  9. layout: 'side',
  10. contentWidth: 'Fluid',
  11. fixedHeader: false,
  12. fixSiderbar: true,
  13. colorWeak: false,
  14. menu: {
  15. locale: false,//关闭国际化
  16. },
  17. title: 'React-ant-ts后台管理系统',//网站的titile
  18. pwa: false,//是否开始pwa
  19. iconfontUrl: '',
  20. };
  21. export type { DefaultSettings };
  22. export default proSettings;