From 3c200b4751cc5ec73fd85d97983bedb377082c49 Mon Sep 17 00:00:00 2001 From: greymoth <246701683+greymoth-jp@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:38:22 +0900 Subject: [PATCH] [l10n] Add missing MuiPagination localization to zh-CN locale --- packages/mui-material/src/locale/zhCN.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/mui-material/src/locale/zhCN.ts b/packages/mui-material/src/locale/zhCN.ts index f67adac0191c04..1d9a616b048116 100644 --- a/packages/mui-material/src/locale/zhCN.ts +++ b/packages/mui-material/src/locale/zhCN.ts @@ -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 '转到上一页'; + }, + }, + }, }, };