Skip to content

Commit 60a05c3

Browse files
committed
intl: extract remaining string
Use client-side Translation component where htmr required due to html usage inside strings
1 parent 462b3be commit 60a05c3

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

app/[locale]/enterprise/page.tsx

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import Visa from "@/components/icons/enterprise/visa.svg"
3737
import Walmart from "@/components/icons/enterprise/walmart.svg"
3838
import WFP from "@/components/icons/enterprise/wfp.svg"
3939
import MainArticle from "@/components/MainArticle"
40+
import Translation from "@/components/Translation"
4041
import { ButtonLink } from "@/components/ui/buttons/Button"
4142
import { Card } from "@/components/ui/card"
4243
import { Skeleton, SkeletonLines } from "@/components/ui/skeleton"
@@ -141,49 +142,45 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
141142
{
142143
name: "Blackrock",
143144
content: (
144-
<>
145-
Launched <strong>$2,9B+ tokenized</strong> U.S. Treasury fund on
146-
Ethereum and its ecosystem, delivering same-day liquidity to
147-
institutions.
148-
</>
145+
<Translation
146+
id="page-enterprise-cases-blackrock-content"
147+
ns="page-enterprise"
148+
/>
149149
),
150150
},
151151
{
152152
name: "MediLedger",
153-
content:
154-
"Enables Pfizer and Genentech to verify drug authenticity and ensure pharma compliance.",
153+
content: t("page-enterprise-cases-mediledger-content"),
155154
},
156155
{
157156
name: "European Investment Bank",
158157
content: (
159-
<>
160-
<strong>Issued a €100M digital bond</strong> on public Ethereum. The
161-
project was conducted in cooperation with the Banque de France,
162-
Goldman Sachs, Santander and Société Generale.
163-
</>
158+
<Translation
159+
ns="page-enterprise"
160+
id="page-enterprise-cases-eib-content"
161+
/>
164162
),
165163
},
166164
{
167165
name: "T-Mobile & SK Telecom",
168-
content:
169-
"Use Ethereum to streamline roaming and device trust—shared ledgers simplify authentication and billing.",
166+
content: t("page-enterprise-cases-tmobile-content"),
170167
},
171168
{
172169
name: "UN World Food Programme",
173170
content: (
174-
<>
175-
UN <strong>tracks aid for 100,000+ refugees</strong> using a private
176-
Ethereum fork, boosting audit capabilities.
177-
</>
171+
<Translation
172+
id="page-enterprise-cases-unwfp-content"
173+
ns="page-enterprise"
174+
/>
178175
),
179176
},
180177
{
181178
name: "Visa",
182179
content: (
183-
<>
184-
Settled over <strong>$225 million</strong> in stablecoin transactions
185-
using USDC across Ethereum and other blockchains.
186-
</>
180+
<Translation
181+
id="page-enterprise-cases-visa-content"
182+
ns="page-enterprise"
183+
/>
187184
),
188185
},
189186
]
@@ -289,12 +286,10 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
289286
<div className="max-w-prose space-y-4">
290287
<h2>{t("page-enterprise-metrics-header")}</h2>
291288
<p>
292-
Ethereum is the leading platform for <strong>issuing</strong>,{" "}
293-
<strong>managing</strong>, and{" "}
294-
<strong>settling digital assets</strong>. From tokenized money and
295-
financial instruments to real-world assets and emerging markets,
296-
Ethereum provides a secure, neutral foundation for the digital
297-
economy.
289+
<Translation
290+
id="page-enterprise-metrics-subtext"
291+
ns="page-enterprise"
292+
/>
298293
</p>
299294
</div>
300295

src/intl/en/page-enterprise.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"page-enterprise-": "",
3+
"page-enterprise-cases-mediledger-content": "Enables Pfizer and Genentech to verify drug authenticity and ensure pharma compliance.",
4+
"page-enterprise-cases-tmobile-content": "Use Ethereum to streamline roaming and device trust—shared ledgers simplify authentication and billing.",
5+
"page-enterprise-cases-unwfp-content": "UN <strong>tracks aid for 100,000+ refugees</strong> using a private Ethereum fork, boosting audit capabilities.",
6+
"page-enterprise-cases-visa-content": "Settled over <strong>$225 million</strong> in stablecoin transactions using USDC across Ethereum and other blockchains.",
7+
"page-enterprise-cases-blackrock-content": "Launched <strong>$2,9B+ tokenized</strong> U.S. Treasury fund on Ethereum and its ecosystem, delivering same-day liquidity to institutions.",
8+
"page-enterprise-cases-eib-content": "<strong>Issued a €100M digital bond</strong> on public Ethereum. The project was conducted in cooperation with the Banque de France, Goldman Sachs, Santander and Société Générale.",
39
"page-enterprise-activity-tx-count": "Daily transactions",
410
"page-enterprise-activity-stablecoin-mktcap": "Stablecoin market cap",
511
"page-enterprise-activity-total-secured": "Total capital secured",
@@ -24,6 +30,7 @@
2430
"page-enterprise-hero-title": "Ethereum for institutions",
2531
"page-enterprise-metadata-description": "World's most trusted blockchain for digital assets—build for scalability and security with enterprise scaling in mind.",
2632
"page-enterprise-metrics-header": "World's most trusted blockchain for digital assets",
33+
"page-enterprise-metrics-subtext": "Ethereum is the leading platform for <strong>issuing</strong>, <strong>managing</strong>, and <strong>settling digital assets</strong>. From tokenized money and financial instruments to real-world assets and emerging markets, Ethereum provides a secure, neutral foundation for the digital economy.",
2734
"page-enterprise-reason-1-content": "Ethereum's modular design mirrors the properties of the current global settlement and clearing system.",
2835
"page-enterprise-reason-1-header": "Elegance",
2936
"page-enterprise-reason-2-content": "A robust long-term PR&D roadmap and a vibrant ecosystem of talent ready to execute over the next 5-10 years.",

0 commit comments

Comments
 (0)