Skip to content

Commit 7548340

Browse files
authored
Merge pull request #10760 from hursittarcan/dev
Add translations for untranslated strings [General]
2 parents 83e901c + 2a6a5a5 commit 7548340

File tree

15 files changed

+59
-39
lines changed

15 files changed

+59
-39
lines changed

src/components/BeaconChainActions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ const BeaconChainActions: React.FC = () => {
5959

6060
const datapoints: Array<CardListItem> = [
6161
{
62-
title: "beaconscan",
62+
title: t("consensus-beaconscan-title"),
6363
image: getImage(data.beaconscan)!,
6464
alt: "",
6565
link: "https://beaconscan.com",
6666
description: t("consensus-beaconscan-desc"),
6767
},
6868
{
69-
title: "beaconcha.in",
69+
title: t("consensus-beaconscan-in-title"),
7070
image: getImage(data.beaconchain)!,
7171
alt: "",
7272
link: "https://beaconcha.in",
@@ -78,12 +78,12 @@ const BeaconChainActions: React.FC = () => {
7878
const reads: Array<CardListItem> = [
7979
{
8080
title: t("page-upgrade-article-title-two-point-oh"),
81-
description: "Status",
81+
description: t("page-upgrade-article-author-status"),
8282
link: "https://our.status.im/two-point-oh-the-beacon-chain/",
8383
},
8484
{
8585
title: t("page-upgrade-article-title-beacon-chain-explainer"),
86-
description: "Ethos.dev",
86+
description: t("page-upgrade-article-author-ethos-dev"),
8787
link: "https://ethos.dev/beacon-chain/",
8888
},
8989
{

src/components/EnergyConsumptionChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const EnergyConsumptionChart: React.FC = () => {
149149
color: "#C1B6F5",
150150
},
151151
{
152-
name: "AirBnB",
152+
name: t("energy-consumption-chart-airbnb-label"),
153153
amount: 0.02,
154154
color: "#E50914",
155155
},

src/components/Footer.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const Footer: React.FC<IProps> = () => {
6666
title: t("use-ethereum"),
6767
links: [
6868
{
69-
text: t("find-wallet"),
7069
to: "/wallets/find-wallet/",
70+
text: t("find-wallet"),
7171
},
7272
{
7373
to: `/get-eth/`,
@@ -115,24 +115,24 @@ const Footer: React.FC<IProps> = () => {
115115
text: t("ethereum-wallets"),
116116
},
117117
{
118-
text: t("ethereum-security"),
119118
to: "/security/",
119+
text: t("ethereum-security"),
120120
},
121121
{
122-
text: t("web3"),
123122
to: "/web3/",
123+
text: t("web3"),
124124
},
125125
{
126-
text: t("smart-contracts"),
127126
to: "/smart-contracts/",
127+
text: t("smart-contracts"),
128128
},
129129
{
130-
text: t("energy-consumption"),
131130
to: "/energy-consumption/",
131+
text: t("energy-consumption"),
132132
},
133133
{
134-
text: t("ethereum-roadmap"),
135134
to: "/roadmap/",
135+
text: t("ethereum-roadmap"),
136136
},
137137
{
138138
to: "/eips/",
@@ -151,20 +151,20 @@ const Footer: React.FC<IProps> = () => {
151151
text: t("ethereum-glossary"),
152152
},
153153
{
154-
text: t("ethereum-governance"),
155154
to: "/governance/",
155+
text: t("ethereum-governance"),
156156
},
157157
{
158-
text: t("bridges"),
159158
to: "/bridges/",
159+
text: t("bridges"),
160160
},
161161
{
162-
text: t("zero-knowledge-proofs"),
163162
to: "/zero-knowledge-proofs/",
163+
text: t("zero-knowledge-proofs"),
164164
},
165165
{
166-
text: t("quizzes-title"),
167166
to: "/quizzes/",
167+
text: t("quizzes-title"),
168168
},
169169
],
170170
},

src/components/Nav/useNav.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const useNav = ({ path }: { path: string }) => {
7777
ariaLabel: t("learn-menu"),
7878
items: [
7979
{
80-
text: "Start here",
80+
text: t("start-here"),
8181
items: [
8282
{
8383
text: t("learn-hub"),
@@ -90,7 +90,7 @@ export const useNav = ({ path }: { path: string }) => {
9090
],
9191
},
9292
{
93-
text: "Ethereum basics",
93+
text: t("ethereum-basics"),
9494
items: [
9595
{
9696
text: t("what-is-ethereum"),
@@ -123,7 +123,7 @@ export const useNav = ({ path }: { path: string }) => {
123123
],
124124
},
125125
{
126-
text: "Ethereum protocol",
126+
text: t("ethereum-protocol"),
127127
items: [
128128
{
129129
text: t("energy-consumption"),

src/components/Staking/StakingGuides.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,27 @@ import React from "react"
44
// Components
55
import CardList from "../CardList"
66
import { Stack } from "@chakra-ui/react"
7+
import { useTranslation } from "gatsby-plugin-react-i18next"
78

89
export interface IProps {}
910

1011
const StakingGuides: React.FC<IProps> = () => {
12+
const { t } = useTranslation()
1113
const guides = [
1214
{
13-
title: "CoinCashew's Ethereum 2.0 Guide",
15+
title: t("page-staking-guide-title-coincashew-ethereum"),
1416
link: "https://www.coincashew.com/coins/overview-eth/guide-or-how-to-setup-a-validator-on-eth2-mainnet",
15-
description: "Linux (CLI)",
17+
description: t("page-staking-guide-description-linux"),
1618
},
1719
{
18-
title: "Somer Esat",
20+
title: t("page-staking-guide-title-somer-esat"),
1921
link: "https://github.com/SomerEsat/ethereum-staking-guide",
20-
description: "Linux (CLI)",
22+
description: t("page-staking-guide-description-linux"),
2123
},
2224
{
23-
title: "Rocket Pool Node Operators",
25+
title: t("page-staking-guide-title-rocket-pool"),
2426
link: "https://rocketpool.net/node-operators",
25-
description: "Linux, macOS (CLI)",
27+
description: t("page-staking-guide-description-mac-linux"),
2628
},
2729
]
2830

src/intl/en/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"enterprise-menu": "Enterprise Menu",
6161
"esp": "Ecosystem Support Program",
6262
"eth-current-price": "Current ETH price (USD)",
63+
"ethereum-basics": "Ethereum basics",
6364
"ethereum-bug-bounty": "Ethereum bug bounty program",
6465
"consensus-when-shipping": "When's it shipping?",
6566
"ethereum-upgrades": "Ethereum upgrades",
@@ -72,6 +73,7 @@
7273
"ethereum-governance": "Ethereum governance",
7374
"ethereum-logo": "Ethereum logo",
7475
"ethereum-roadmap": "Ethereum roadmap",
76+
"ethereum-protocol": "Ethereum protocol",
7577
"ethereum-security": "Ethereum security and scam prevention",
7678
"ethereum-support": "Ethereum support",
7779
"ethereum-wallets": "Ethereum wallets",
@@ -174,6 +176,7 @@
174176
"stablecoins": "Stablecoins",
175177
"stake-eth": "Stake ETH",
176178
"staking": "Staking",
179+
"start-here": "Start here",
177180
"style-guide": "Style guide",
178181
"solo": "Solo staking",
179182
"terms-of-use": "Terms of use",

src/intl/en/page-about.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"page-what-is-ethereum-energy-consumption-chart-legend": "Annual Energy Consumption in TWh/yr",
2626
"page-upgrades-post-merge-banner-governance-ood": "Some content on this page is out-of-date after the merge. Please raise a PR if you would like to contribute.",
2727
"energy-consumption-chart-global-data-centers-label": "Global data centers",
28+
"energy-consumption-chart-airbnb-label": "AirBnB",
2829
"energy-consumption-gold-mining-cbeci-label": "Gold mining",
2930
"energy-consumption-chart-btc-pow-label": "BTC PoW",
3031
"energy-consumption-chart-netflix-label": "Netflix",

src/intl/en/page-get-eth.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"page-get-eth-article-keeping-crypto-safe": "The keys to keeping your crypto safe",
33
"page-get-eth-article-protecting-yourself": "Protecting yourself and your funds",
44
"page-get-eth-article-store-digital-assets": "How to store digital assets on Ethereum",
5+
"page-get-eth-article-protecting-yourself-desc": "MyCrypto",
6+
"page-get-eth-article-keeping-crypto-safe-desc": "Coinbase",
7+
"page-get-eth-article-store-digital-assets-desc": "ConsenSys",
58
"page-get-eth-cex": "Centralized exchanges",
69
"page-get-eth-cex-desc": "Exchanges are businesses that let you buy crypto using traditional currencies. They have custody over any ETH you buy until you send it to a wallet you control.",
710
"page-get-eth-checkout-dapps-btn": "Check out dapps",

src/intl/en/page-staking.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
"page-staking-section-why-title": "Why stake your ETH?",
4949
"page-staking-section-why-p1": "It all depends on how much you are willing to stake. You'll need 32 ETH to activate your own validator, but it is possible to stake less.",
5050
"page-staking-section-why-p2": "Check out the options below and go for the one that is best for you, and for the network.",
51+
"page-staking-guide-title-coincashew-ethereum": "CoinCashew's Ethereum 2.0 Guide",
52+
"page-staking-guide-title-somer-esat": "Somer Esat",
53+
"page-staking-guide-title-rocket-pool": "Rocket Pool Node Operators",
54+
"page-staking-guide-description-linux": "Linux (CLI)",
55+
"page-staking-guide-description-mac-linux": "Linux, macOS (CLI)",
5156
"page-staking-hierarchy-solo-h2": "Solo home staking",
5257
"page-staking-hierarchy-solo-pill-1": "Most impactful",
5358
"page-staking-hierarchy-solo-pill-2": "Full control",
@@ -153,6 +158,8 @@
153158
"page-staking-launchpad-widget-p3": "To make things easier, check out some of the tools and guides below that can help you alongside the Staking Launchpad to get your clients set up with ease.",
154159
"page-staking-launchpad-widget-link": "Software tools and guide",
155160
"page-staking-products-get-started": "Get started",
161+
"page-staking-dropdown-staking-options": "Staking Options",
162+
"page-staking-dropdown-staking-options-alt": "Staking options dropdown menu",
156163
"page-staking-stats-box-metric-1": "Total ETH staked",
157164
"page-staking-stats-box-metric-2": "Total validators",
158165
"page-staking-stats-box-metric-3": "Current APR",

src/intl/en/page-upgrades-index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"page-upgrades-answer-1": "The Beacon Chain was used as a tool to upgrade Ethereum Mainnet at The Merge.",
1212
"page-upgrades-answer-2": "With The Merge, Ethereum had its most substantial upgrade ever swapping proof-of-work for a new proof-of-stake based consensus layer.",
1313
"page-upgrades-answer-4": "The Beacon Chain was used to develop the proof-of-stake-based consensus Ethereum uses today. It was run separately to Ethereum Mainnet so developers could observe the consensus mechanism in isolation before using it to coordinate real activity.",
14+
"page-upgrade-article-author-status": "Status",
1415
"page-upgrade-article-author-ethmerge": "Ethmerge",
1516
"page-upgrade-article-author-alchemy": "Alchemy",
1617
"page-upgrade-article-author-consensys": "Consensys",

0 commit comments

Comments
 (0)