Skip to content

Commit bedd023

Browse files
committed
setup maturity labels for translation
1 parent 2d12aa8 commit bedd023

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/components/Layer2NetworksTable/NetworkMaturityTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const NetworkMaturityTooltip = ({ maturity }: { maturity: MaturityLevel }) => {
6161
}
6262
>
6363
<Tag variant="solid" {...maturityDescription[maturity].tag}>
64-
{maturity.toUpperCase()}
64+
{t(`page-layer-2-networks-${maturity}`)}
6565
</Tag>
6666
</Tooltip>
6767
)

src/components/Layer2NetworksTable/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useMemo, useState } from "react"
2+
import { useTranslation } from "next-i18next"
23

34
import { ExtendedRollup, FilterOption, Lang } from "@/lib/types"
45

@@ -21,6 +22,7 @@ const Layer2NetworksTable = ({
2122
}) => {
2223
const networkFilterOptions = useNetworkFilters()
2324
const [filters, setFilters] = useState<FilterOption[]>(networkFilterOptions)
25+
const { t } = useTranslation("page-layer-2-networks")
2426

2527
const filteredData = useMemo(() => {
2628
const networks = [mainnetData, ...layer2Data]
@@ -72,7 +74,7 @@ const Layer2NetworksTable = ({
7274
noResultsComponent={() => (
7375
<NetworksNoResults resetFilters={resetFilters} />
7476
)}
75-
mobileFiltersLabel={"See networks"}
77+
mobileFiltersLabel={t("page-layer-2-networks-transaction-see-networks")}
7678
/>
7779
)
7880
}

src/intl/en/page-layer-2-networks.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,11 @@
6161
"page-layer-2-networks-market-share-description": "Total value locked in escrow contracts on Ethereum.",
6262
"page-layer-2-networks-avg-transaction-fee": "Avg. transaction fee",
6363
"page-layer-2-networks-transaction-fee": "Transaction fee",
64-
"page-layer-2-networks-transaction-fee-description": "The average cost of transaction for transfers, swaps, minting and other activities."
64+
"page-layer-2-networks-transaction-fee-description": "The average cost of transaction for transfers, swaps, minting and other activities.",
65+
"page-layer-2-networks-transaction-see-networks": "See networks",
66+
"page-layer-2-networks-n/a": "N/A",
67+
"page-layer-2-networks-robust": "ROBUST",
68+
"page-layer-2-networks-maturing": "MATURING",
69+
"page-layer-2-networks-developing": "DEVELOPING",
70+
"page-layer-2-networks-emerging": "EMERGING"
6571
}

0 commit comments

Comments
 (0)