Skip to content

Commit 2b383a6

Browse files
authored
Merge pull request #1871 from jicruz96/our-team-translation
extract text to translation ready files -- Our Team page
2 parents 30c8178 + 1c7698f commit 2b383a6

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

components/OurTeam/OurTeam.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { SteeringCommittee } from "./SteeringCommittee"
88
import { AdvisoryBoard } from "./AdvisoryBoard"
99
import { OurPartners } from "./Partners"
1010
import { useMediaQuery } from "usehooks-ts"
11+
import { useTranslation } from "next-i18next"
1112

1213
export const OurTeam = () => {
1314
const isMobile = useMediaQuery("(max-width: 768px)")
@@ -36,28 +37,29 @@ export const OurTeam = () => {
3637
}
3738

3839
const TabGroup = () => {
40+
const { t } = useTranslation("our-team")
3941
return (
4042
<Row className="p-3 g-0">
4143
<Col md={4} className="text-center">
4244
<Nav className="our-team-tab flex-column">
4345
<Nav.Item>
4446
<Nav.Link eventKey="steering_committee">
45-
Steering Committee
47+
{t("steering.title")}
4648
</Nav.Link>
4749
</Nav.Item>
4850
</Nav>
4951
</Col>
5052
<Col md={4} className="text-center">
5153
<Nav className="our-team-tab flex-column">
5254
<Nav.Item>
53-
<Nav.Link eventKey="advisory_board">Advisory Board</Nav.Link>
55+
<Nav.Link eventKey="advisory_board">{t("advisory.title")}</Nav.Link>
5456
</Nav.Item>
5557
</Nav>
5658
</Col>
5759
<Col md={4} className="text-center">
5860
<Nav className="our-team-tab flex-column">
5961
<Nav.Item>
60-
<Nav.Link eventKey="partners">Partners</Nav.Link>
62+
<Nav.Link eventKey="partners">{t("partners.title")}</Nav.Link>
6163
</Nav.Item>
6264
</Nav>
6365
</Col>
@@ -66,6 +68,7 @@ const TabGroup = () => {
6668
}
6769

6870
const TabDropdown = () => {
71+
const { t } = useTranslation("our-team")
6972
const [selectedTab, setSelectedTab] = useState<string>("Steering Committee")
7073

7174
const handleTabClick = (tabTitle: string) => {
@@ -85,23 +88,23 @@ const TabDropdown = () => {
8588
eventKey="steering_committee"
8689
onClick={() => handleTabClick("Steering Committee")}
8790
>
88-
Steering Committee
91+
{t("steering.title")}
8992
</Dropdown.Item>
9093
<Dropdown.Divider />
9194
<Dropdown.Item
9295
className="p-2"
9396
eventKey="advisory_board"
9497
onClick={() => handleTabClick("Advisory Board")}
9598
>
96-
Advisory Board
99+
{t("advisory.title")}
97100
</Dropdown.Item>
98101
<Dropdown.Divider />
99102
<Dropdown.Item
100103
className="p-2"
101104
eventKey="partners"
102105
onClick={() => handleTabClick("Partners")}
103106
>
104-
Partners
107+
{t("partners.title")}
105108
</Dropdown.Item>
106109
</Dropdown.Menu>
107110
</Dropdown>

public/locales/en/our-team.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"advisory": {
3-
"title" : "Advisory Board",
3+
"title": "Advisory Board",
44
"desc": "The Advisory Board provides strategic advice and domain expertise to the MAPLE project. We are grateful to have the support of:",
55
"DFields": "David Fields, Ph.D., is Professor of the Practice within the Graduate School of Education at Northeastern University and Senior Fellow with The Burnes Center for Social Change. He brings over 20 years of higher education experience building, launching, and scaling industry aligned programs. At the Burnes Center, his work includes supporting AI for Impact, and its InnovateMA co-op program in partnership with the Commonwealth of Massachusetts.",
66
"JChang": "Jerren is the inaugural full-time President & CEO of Partners in Democracy. He is the co-founder of GenUnity - an innovative nonprofit supporting the civic learning and leadership development of hundreds of grassroots residents in Massachusetts communities and now a core pillar of PID's holistic democracy renovation strategy. Before GenUnity, Jerren served in the Chicago Mayor's Office as an economic development policy staffer and worked as a consultant at McKinsey & Company advising public and social sector leaders.",
@@ -27,5 +27,8 @@
2727
"MBaggett": "Merritt Baggett is a freelance React Front-End Web Developer. He received a Bachelor's Degree in Psychology from Virginia Tech.",
2828
"KKim": "Kimin Kim is a Lead Front-end Developer at the Data Lab for Tech Impact with a Bachelor's Degree of Computer Science from Northeastern University. His hobbies are playing volleyball/badminton, eating good food, and learning new skills.",
2929
"MChai": "Minqi Chai is a social scientist and user experience researcher, advocating for human-centered approaches in digital transformation. She received her PhD in Political Science and Government from Cornell University."
30+
},
31+
"partners": {
32+
"title": "Partners"
3033
}
31-
}
34+
}

0 commit comments

Comments
 (0)