Skip to content

Commit 9196ae5

Browse files
committed
setup missing staking translations
1 parent f7eb695 commit 9196ae5

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

src/components/ProductCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { ReactNode } from "react"
2+
import { useTranslation } from "next-i18next"
23
import {
34
Badge,
45
Box,
@@ -85,6 +86,7 @@ const ProductCard = ({
8586
githubRepoLanguages = [],
8687
hideStars = false,
8788
}: ProductCardProps) => {
89+
const { t } = useTranslation("common")
8890
const DESCRIPTION_STYLES: TextProps = {
8991
opacity: 0.8,
9092
fontSize: "sm",
@@ -157,7 +159,7 @@ const ProductCard = ({
157159
))}
158160
</HStack>
159161
<ButtonLink to={url} m={4} height={20}>
160-
Open {name}
162+
{t('open')} {name}
161163
</ButtonLink>
162164
</Flex>
163165
)

src/components/Staking/StakingComparison.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const StakingComparison = ({ page, className }: StakingComparisonProps) => {
125125
mt={16}
126126
className={className}
127127
>
128-
<OldHeading fontSize="2rem">Comparison with other options</OldHeading>
128+
<OldHeading fontSize="2rem">{t("page-staking-comparison-with-other-options")}</OldHeading>
129129
{selectedData.map(
130130
({ title, linkText, to, color, content, glyph, matomo }, idx) => (
131131
<Flex gap={6} direction={{ base: "column", md: "row" }} key={idx}>

src/components/Staking/StakingLaunchpadWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const StakingLaunchpadWidget = () => {
3131

3232
const data = {
3333
testnet: {
34-
label: "Holesky testnet",
34+
label: `Holesky ${t("testnet")}`,
3535
url: "https://holesky.launchpad.ethereum.org",
3636
},
3737
mainnet: {

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const StakingProductCard = ({
195195
textTransform="uppercase"
196196
pt={6}
197197
>
198-
{minEth > 0 ? `From ${minEth} ETH` : "Any amount"}
198+
{minEth > 0 ? `${t("common:from")} ${minEth} ETH` : t("page-staking-any-amount")}
199199
</Center>
200200
)}
201201
<Flex

src/intl/en/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"feedback-widget-thank-you-timing": "2–3 min",
108108
"feedback-widget-thank-you-title": "Thank you for your feedback!",
109109
"find-wallet": "Find wallet",
110+
"from": "From",
110111
"future-proofing": "Future-proofing",
111112
"get-eth": "Get ETH",
112113
"get-involved": "Get involved",
@@ -335,6 +336,7 @@
335336
"nfts": "NFTs",
336337
"no": "No",
337338
"on-this-page": "On this page",
339+
"open": "Open",
338340
"open-research": "Open research",
339341
"page-developers-aria-label": "Developers' Menu",
340342
"page-index-meta-title": "Home",

src/intl/en/page-staking.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,8 @@
230230
"page-staking-withdrawals-important-notices": "Important notices",
231231
"page-staking-withdrawals-important-notices-desc": "Withdrawals are not yet available. Please read the <a href=\"https://blog.ethereum.org/2021/12/01/eth2-merge-and-post-merge-faq/\" target=\"_blank\">Eth2 Merge and post-merge FAQ</a> for more information.",
232232
"page-upgrades-merge-btn": "More on The Merge",
233-
"subscribe-to-ef-blog": "<a href=\"https://blog.ethereum.org/category/protocol/#subscribe\" target=\"_blank\">Subscribe to the EF Blog</a> to receive email notifications for the latest protocol announcements."
233+
"subscribe-to-ef-blog": "<a href=\"https://blog.ethereum.org/category/protocol/#subscribe\" target=\"_blank\">Subscribe to the EF Blog</a> to receive email notifications for the latest protocol announcements.",
234+
"page-staking-comparison-with-other-options": "Comparison with other options",
235+
"page-staking-any-amount": "Any amount",
236+
"page-staking-testnet": "testnet"
234237
}

0 commit comments

Comments
 (0)