Skip to content

Commit 4037cec

Browse files
committed
Add translations for new component
1 parent dcb2761 commit 4037cec

File tree

2 files changed

+62
-28
lines changed

2 files changed

+62
-28
lines changed

src/components/NetworkMaturity.tsx

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,93 +9,109 @@ import {
99
} from "./ui/table"
1010
import ExpandableCard from "./ExpandableCard"
1111

12+
import useTranslation from "@/hooks/useTranslation"
1213
import DevelopingImage from "@/public/images/network-maturity/developing.svg"
1314
import EmergingImage from "@/public/images/network-maturity/emerging.svg"
1415
import MaturingImage from "@/public/images/network-maturity/maturing.svg"
1516
import RobustImage from "@/public/images/network-maturity/robust.svg"
1617

1718
const NetworkMaturity = () => {
19+
const { t } = useTranslation("page-layer-2-networks")
20+
1821
return (
1922
<div className="mx-9 mt-10">
2023
<ExpandableCard title="Network maturity explained">
2124
<div>
2225
<div className="space-y-4">
2326
<p>
24-
We review the network’s progress towards{" "}
27+
{t("page-layer-2-network-maturity-component-1")}{" "}
2528
<InlineLink href="https://medium.com/l2beat/introducing-stages-a-framework-to-evaluate-rollups-maturity-d290bb22befe">
26-
Ethereum alignment
29+
{t("page-layer-2-network-maturity-component-2")}
2730
</InlineLink>{" "}
28-
(<strong>rollup stages 0-2</strong>),{" "}
29-
<strong>total value locked (TVL)</strong>,
30-
<strong> time live in production</strong>, and{" "}
31-
<strong>risk considerations</strong>. These levels help track
32-
network development and provide a standardized way for the
33-
community to evaluate progress.
34-
</p>
35-
<p>
36-
Technical progress alone is not enough, user adoption and age are
37-
essential part of the overall strength and maturity on any
38-
network.
31+
(<strong>{t("page-layer-2-network-maturity-component-3")}</strong>
32+
),{" "}
33+
<strong>{t("page-layer-2-network-maturity-component-4")}</strong>,{" "}
34+
<strong>{t("page-layer-2-network-maturity-component-5")}</strong>.{" "}
35+
{t("page-layer-2-network-maturity-component-6")}
3936
</p>
37+
<p>{t("page-layer-2-network-maturity-component-7")}</p>
4038
</div>
4139

4240
<Table className="mt-4 w-full max-w-[760px]">
4341
<TableHeader>
4442
<TableRow>
45-
<TableHead className="w-1/2">Maturity</TableHead>
46-
<TableHead className="w-1/2">Requirements</TableHead>
43+
<TableHead className="w-1/2">
44+
{t("page-layer-2-network-maturity-component-8")}
45+
</TableHead>
46+
<TableHead className="w-1/2">
47+
{t("page-layer-2-network-maturity-component-9")}
48+
</TableHead>
4749
</TableRow>
4850
</TableHeader>
4951
<TableBody>
5052
<TableRow>
5153
<TableCell className="border-none bg-[#3C4CEB] align-middle text-white">
5254
<div className="flex items-center gap-2">
5355
<RobustImage />
54-
<strong>Robust</strong>
56+
<strong>{t("page-layer-2-networks-robust-label")}</strong>
5557
</div>
5658
</TableCell>
5759
<TableCell>
58-
• Stage 2<br />• At least $1B TVL
60+
{t("page-layer-2-network-maturity-component-10")}
61+
<br />
62+
{t("page-layer-2-network-maturity-component-11")}
5963
</TableCell>
6064
</TableRow>
6165

6266
<TableRow>
6367
<TableCell className="bg-[#6995F7] align-middle text-white">
6468
<div className="flex items-center gap-2">
6569
<MaturingImage />
66-
<strong>Maturing</strong>
70+
<strong>{t("page-layer-2-networks-maturing-label")}</strong>
6771
</div>
6872
</TableCell>
6973
<TableCell>
70-
• Stage 1<br />• At least $150M TVL
71-
<br />• 6+ months live in production
74+
{t("page-layer-2-network-maturity-component-12")}
75+
<br />
76+
{t("page-layer-2-network-maturity-component-13")}
77+
<br />
78+
{t("page-layer-2-network-maturity-component-14")}
7279
</TableCell>
7380
</TableRow>
7481

7582
<TableRow>
7683
<TableCell className="bg-[#CADFFB] align-middle text-black">
7784
<div className="flex items-center gap-2">
7885
<DevelopingImage />
79-
<strong>Developing</strong>
86+
<strong>
87+
{t("page-layer-2-networks-developing-label")}
88+
</strong>
8089
</div>
8190
</TableCell>
8291
<TableCell>
83-
• Stage 0<br />• Risk assessment: 3/5 (L2beat)
84-
<br />• At least $150M TVL
85-
<br />• 6+ months live in production
92+
{t("page-layer-2-network-maturity-component-15")}
93+
<br />
94+
{t("page-layer-2-network-maturity-component-16")}
95+
<br />
96+
{t("page-layer-2-network-maturity-component-13")}
97+
<br />
98+
{t("page-layer-2-network-maturity-component-14")}
8699
</TableCell>
87100
</TableRow>
88101

89102
<TableRow>
90103
<TableCell className="bg-[#E8F1FF] align-middle text-black">
91104
<div className="flex items-center gap-2">
92105
<EmergingImage />
93-
<strong>Emerging</strong>
106+
<strong>{t("page-layer-2-networks-emerging-label")}</strong>
94107
</div>
95108
</TableCell>
96109
<TableCell>
97-
• Stage 0<br />• Risk assessment: 2/5 (L2beat)
98-
<br />• At least $150M TVL or 6+ months live in production
110+
{t("page-layer-2-network-maturity-component-15")}
111+
<br />
112+
{t("page-layer-2-network-maturity-component-17")}
113+
<br />
114+
{t("page-layer-2-network-maturity-component-18")}
99115
</TableCell>
100116
</TableRow>
101117
</TableBody>

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,23 @@
6363
"page-layer-2-networks-avg-transaction-fee": "Avg. transaction fee",
6464
"page-layer-2-networks-transaction-fee": "Transaction fee",
6565
"page-layer-2-networks-transaction-fee-description": "The average cost of transaction for transfers, swaps, minting and other activities.",
66-
"page-layer-2-networks-transaction-see-networks": "See networks"
66+
"page-layer-2-networks-transaction-see-networks": "See networks",
67+
"page-layer-2-network-maturity-component-1": "We review the network’s progress towards",
68+
"page-layer-2-network-maturity-component-2": "Ethereum alignment",
69+
"page-layer-2-network-maturity-component-3": "total value locked (TVL)",
70+
"page-layer-2-network-maturity-component-4": "time live in production",
71+
"page-layer-2-network-maturity-component-5": "and risk considerations",
72+
"page-layer-2-network-maturity-component-6": "These levels help track network development and provide a standardized way for the community to evaluate progress.",
73+
"page-layer-2-network-maturity-component-7": "Technical progress alone is not enough, user adoption and age are essential part of the overall strength and maturity on any network.",
74+
"page-layer-2-network-maturity-component-8": "Maturity",
75+
"page-layer-2-network-maturity-component-9": "Requirements",
76+
"page-layer-2-network-maturity-component-10": "• Stage 2",
77+
"page-layer-2-network-maturity-component-11": "• At least $1B TVL",
78+
"page-layer-2-network-maturity-component-12": "• Stage 1",
79+
"page-layer-2-network-maturity-component-13": "• At least $150M TVL",
80+
"page-layer-2-network-maturity-component-14": "• 6+ months live in production",
81+
"page-layer-2-network-maturity-component-15": "• Stage 0",
82+
"page-layer-2-network-maturity-component-16": "• Risk assessment: 3/5 (L2beat)",
83+
"page-layer-2-network-maturity-component-17": "• Risk assessment: 2/5 (L2beat)",
84+
"page-layer-2-network-maturity-component-18": "• At least $150M TVL or 6+ months live in production"
6785
}

0 commit comments

Comments
 (0)