Skip to content

Commit 2049aab

Browse files
committed
add translations for nav headers in useNav.ts
1 parent c59c22c commit 2049aab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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("page-index-header-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("page-index-header-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("page-index-header-ethereum-protocol"),
127127
items: [
128128
{
129129
text: t("energy-consumption"),

src/intl/en/page-index.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"page-index-get-started-devs-title": "Start building",
2121
"page-index-get-started-devs-description": "If you want to start coding with Ethereum, we have documentation, tutorials, and more in our developer portal.",
2222
"page-index-get-started-devs-image-alt": "An illustration of a hand creating an ETH logo made of lego bricks.",
23+
"page-index-header-ethereum-basics": "Ethereum basics",
24+
"page-index-header-start-here": "Start here",
25+
"page-index-header-ethereum-protocol": "Ethereum protocol",
2326
"page-index-what-is-ethereum": "What is Ethereum?",
2427
"page-index-what-is-ethereum-description": "Ethereum is a technology that's home to digital money, global payments, and applications. The community has built a booming digital economy, bold new ways for creators to earn online, and so much more. It's open to everyone, wherever you are in the world – all you need is the internet.",
2528
"page-index-what-is-ethereum-button": "What is Ethereum?",

0 commit comments

Comments
 (0)