diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index bb7e7b5b600811..533ce91d154527 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -292,6 +292,7 @@ "help-translate": "We are still translating the following certifications.", "help-translate-link": "Help us translate.", "season-greetings": "Season's Greetings to you and your family.", + "season-greetings-fcc": "Season's Greetings from the freeCodeCamp community 🎉", "if-getting-value": "If you're getting a lot out of freeCodeCamp, now is a great time to donate to support our nonprofit's mission.", "project-preview-title": "Here's a preview of what you will build" }, diff --git a/client/src/components/Intro/index.tsx b/client/src/components/Intro/index.tsx index 87e1a9d1f98e15..a80a0f150bd177 100644 --- a/client/src/components/Intro/index.tsx +++ b/client/src/components/Intro/index.tsx @@ -32,10 +32,10 @@ const Intro = ({ onAlertClick }: IntroProps): JSX.Element => { const { t } = useTranslation(); - const buttonVariation = (email: string | undefined): string => { + const titleVariation = (email: string | undefined): string => { if (!email || emailToABVariant(email).isAVariant) - return t('buttons.donate'); - return t('buttons.support-our-nonprofit'); + return t('learn.season-greetings'); + return t('learn.season-greetings-fcc'); }; if (pending && !complete) { return ( @@ -80,7 +80,7 @@ const Intro = ({ )}

- {t('learn.season-greetings')} + {titleVariation(email)}

{t('learn.if-getting-value')}


@@ -92,7 +92,7 @@ const Intro = ({ sameTab={false} to='/donate' > - {buttonVariation(email)} + {t('buttons.support-our-nonprofit')}

diff --git a/config/donation-settings.js b/config/donation-settings.js index ab9bdd8367f58d..3e98f663e559be 100644 --- a/config/donation-settings.js +++ b/config/donation-settings.js @@ -94,7 +94,7 @@ const patreonDefaultPledgeAmount = 500; const aBTestConfig = { isTesting: true, - type: 'LearnAlertCTA' + type: 'LearnAlertTitle' }; module.exports = {