From 2cd66eaf053c34fbb0dcec0218fc2ee8e1694cd9 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sun, 13 Aug 2023 10:22:51 +0530 Subject: [PATCH] add t for blog section Signed-off-by: Ansh Goyal --- components/buttons/GoogleCalendarButton.js | 8 ++++++-- components/buttons/ICSFileButton.js | 8 ++++++-- components/buttons/SubscribeButton.js | 8 ++++++-- components/newsroom/NewsroomSection.js | 10 +++++++--- cypress/test/buttons/GoogleCalendarButton.cy.js | 2 +- cypress/test/buttons/ICSFileButton.cy.js | 2 +- cypress/test/buttons/SubscribeButton.cy.js | 2 +- cypress/test/newsroom/NewsroomSection.cy.js | 2 +- locales/de/common.json | 10 +++++++++- locales/en/common.json | 10 +++++++++- 10 files changed, 47 insertions(+), 15 deletions(-) diff --git a/components/buttons/GoogleCalendarButton.js b/components/buttons/GoogleCalendarButton.js index cbd822a7560..d4e15cd8301 100644 --- a/components/buttons/GoogleCalendarButton.js +++ b/components/buttons/GoogleCalendarButton.js @@ -1,16 +1,20 @@ import Button from './Button'; import IconGoogleCalendar from '../icons/GoogleCalendar'; +import { useTranslation } from '../../lib/i18n'; export default function GoogleCalendarButton({ - text = 'Add to Google Calendar', + text = 'googleCalendarBtn', href, target = '_blank', iconPosition = 'left', className, }) { + + const { t } = useTranslation('common'); + return (