Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/mui-material/src/locale/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,26 @@ export const zhCN: Localization = {
closeText: '关闭',
},
},
MuiPagination: {
defaultProps: {
'aria-label': '分页导航',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : '转到'}${page} 页`;
}
if (type === 'first') {
return '转到第一页';
}
if (type === 'last') {
return '转到最后一页';
}
if (type === 'next') {
return '转到下一页';
}
// if (type === 'previous')
return '转到上一页';
},
},
},
},
};
Loading