Skip to content

Commit

Permalink
♻️ chore: remove unnecessary locale (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Mar 12, 2024
1 parent e1e7a1c commit 96e41e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/pro-editor",
"version": "1.0.1",
"version": "1.0.2",
"description": "🌟 Lightweight Editor UI Framework",
"homepage": "https://github.com/ant-design/pro-editor",
"bugs": {
Expand Down
3 changes: 1 addition & 2 deletions src/ProBuilder/components/Canvas/Component.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useSize } from 'ahooks';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import type { FC } from 'react';
import { memo, useEffect, useRef } from 'react';
import { shallow } from 'zustand/shallow';
Expand Down Expand Up @@ -41,7 +40,7 @@ const Component: FC = memo(() => {
onStatusChange={updateCanvasInteract}
>
<div id={`${prefix}`} ref={ref} className={`${prefix}-component`}>
<ConfigProvider locale={zhCN} prefixCls="canvas">
<ConfigProvider prefixCls="canvas">
<componentAsset.Component />
</ConfigProvider>
</div>
Expand Down

0 comments on commit 96e41e0

Please sign in to comment.