Skip to content

Commit 539e7d1

Browse files
committed
chore: add View Event to en translations
1 parent 4b874a9 commit 539e7d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/EventCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react"
2+
import { useTranslation } from "react-i18next"
23
import { BsCalendar3 } from "react-icons/bs"
34
import { Box, Flex, Heading, Icon } from "@chakra-ui/react"
45
import { Image } from "@chakra-ui/react"
@@ -37,6 +38,7 @@ const EventCard = ({
3738
endDate,
3839
startDate,
3940
}: EventCardProps) => {
41+
const { t } = useTranslation("page-community")
4042
const formatedDate = formatDateRange(startDate, endDate)
4143
return (
4244
<Box
@@ -114,7 +116,7 @@ const EventCard = ({
114116
</Box>
115117
<Box padding={4} paddingTop={0} width={"100%"}>
116118
<ButtonLink href={to} width={"100%"} variant="outline">
117-
View Event
119+
{t("page-community-upcoming-events-view-event")}
118120
</ButtonLink>
119121
</Box>
120122
</Flex>

src/intl/en/page-community.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"page-community-try-ethereum": "Try Ethereum for yourself",
4545
"page-community-upcoming-events-no-events": "We're not aware of any upcoming events. Know of one?",
4646
"page-community-upcoming-events-load-more": "Load more",
47+
"page-community-upcoming-events-view-event": "View event",
4748
"page-community-why-get-involved-title": "Why get involved?",
4849
"page-community-why-get-involved-card-1-title": "Find your tribe",
4950
"page-community-why-get-involved-card-1-description": "There is a tribe for everyone. Find and connect with like minded individuals to discuss, ponder, and celebrate Ethereum together.",

0 commit comments

Comments
 (0)