Skip to content

Commit b68a731

Browse files
Rachel LimRachel Lim
authored andcommitted
add fundraiser nav text to translations
1 parent 2b286ca commit b68a731

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

client/modules/IDE/components/Header/Nav.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const UserMenu = () => {
8888
};
8989

9090
const FundraiserSection = () => {
91+
const { t } = useTranslation();
9192
const dispatch = useDispatch();
9293

9394
return (
@@ -98,7 +99,7 @@ const FundraiserSection = () => {
9899
aria-label="2023-fundraiser-button"
99100
title="2023 Fundraiser Button"
100101
>
101-
Celebrate a Decade of Code and Support p5.js!
102+
{t('Nav.Fundraiser')}
102103
</button>
103104
</>
104105
);

translations/locales/en-US/translations.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"Asset": "Asset",
4646
"MyAssets": "My Assets",
4747
"LogOut": "Log Out"
48-
}
48+
},
49+
"Fundraiser": "Support p5.js and the Processing Foundation!"
4950
},
5051
"CodemirrorFindAndReplace": {
5152
"ToggleReplace": "Toggle Replace",
@@ -202,8 +203,8 @@
202203
}
203204
},
204205
"Fundraiser": {
205-
"Title": "Support p5.js",
206-
"Description": "🎉 Join us in celebrating a Decade of Code! 🎉 Support p5.js and earn unique rewards. 🙂",
206+
"Title": "Support Our Software and Team",
207+
"Description": "🎉 Join us in celebrating a Decade of Code! 🎉 Support p5.js and the Processing Foundation and earn unique rewards. 🙂",
207208
"CallToAction": "Contribute and learn more!"
208209
},
209210
"Sidebar": {

0 commit comments

Comments
 (0)