From fed0ed10c55b4d8dad134c7a25393c3774911855 Mon Sep 17 00:00:00 2001 From: emyarod Date: Fri, 14 Aug 2020 13:48:39 -0500 Subject: [PATCH] fix(Pagination): update default page range text --- packages/react/src/components/Pagination/Pagination.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/Pagination/Pagination.js b/packages/react/src/components/Pagination/Pagination.js index 2cc859b50fc5..130fbc3b2332 100644 --- a/packages/react/src/components/Pagination/Pagination.js +++ b/packages/react/src/components/Pagination/Pagination.js @@ -140,7 +140,8 @@ export default class Pagination extends Component { forwardText: 'Next page', itemsPerPageText: 'Items per page:', pageNumberText: 'Page Number', - pageRangeText: (current, total) => `of ${total} pages`, + pageRangeText: (current, total) => + `of ${total} ${total === 1 ? 'page' : 'pages'}`, disabled: false, page: 1, pagesUnknown: false,