From 29643968db4733ca24e6601d39429afce1145e5e Mon Sep 17 00:00:00 2001 From: iliyan90 <74927065+iliyan90@users.noreply.github.com> Date: Fri, 31 May 2024 22:40:52 +0300 Subject: [PATCH] Add BG translation for 'Rows per page' text #1782 (#1839) --- public/locales/bg/common.json | 3 ++- public/locales/en/common.json | 3 ++- .../client/campaigns/CampaignPublicExpensesGrid.tsx | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json index 6c1ae9eff..e91c63625 100644 --- a/public/locales/bg/common.json +++ b/public/locales/bg/common.json @@ -129,5 +129,6 @@ }, "cookieConsent": "Подкрепи.бг не използва бисквитки, освен тези от трети страни, нужни за аналитичните компоненти Google Analytics и HotJar. Приемането на бисквитките ще ни помогне да подобрим вашето потребителско преживяване.", "cookieConsentButton": "Приемам", - "cookieRejectButton": "Отхвърлям" + "cookieRejectButton": "Отхвърлям", + "rows": "Редове на страница" } diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 9f27da0e8..0a80d1b29 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -130,5 +130,6 @@ "cookieConsent": "Podkrepi.bg doesn't use cookies, except the third-party cookies required for the analytics components Google Analytics and HotJar. Accepting the cookies will help us improve your user experience.", "cookieConsentButton": "Accept", - "cookieRejectButton": "Reject" + "cookieRejectButton": "Reject", + "rows": "Rows per page" } diff --git a/src/components/client/campaigns/CampaignPublicExpensesGrid.tsx b/src/components/client/campaigns/CampaignPublicExpensesGrid.tsx index 10bcc80b2..12f47fb26 100644 --- a/src/components/client/campaigns/CampaignPublicExpensesGrid.tsx +++ b/src/components/client/campaigns/CampaignPublicExpensesGrid.tsx @@ -152,6 +152,11 @@ export default observer(function CampaignPublicExpensesGrid({ slug }: Props) { py: '22px', }, }} + localeText={{ + MuiTablePagination: { + labelRowsPerPage: t('common:rows'), + }, + }} /> )