Skip to content

Commit

Permalink
fix: delete Chinese locale (#38781)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Nov 21, 2022
1 parent 0c446bc commit 14316b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .dumi/theme/builtins/ComponentOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ const Overview: React.FC = () => {
.concat([
{
title: locale === 'zh-CN' ? '重型组件' : 'Others',
children: proComponentsList,
children:
locale === 'zh-CN'
? proComponentsList.map((component) => ({ ...component, subtitle: '' }))
: proComponentsList,
},
]);
}, [data, locale]);
Expand Down

0 comments on commit 14316b3

Please sign in to comment.