Skip to content

Commit 43bf544

Browse files
committed
fix: common namespace
1 parent 2742630 commit 43bf544

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/[locale]/learn/page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const ImageHeight200 = ({ src, alt }: ImageProps) => (
117117
export default async function Page({ params }: { params: Promise<Params> }) {
118118
const { locale } = await params
119119
const t = await getTranslations({ locale, namespace: "page-learn" })
120+
const tCommon = await getTranslations({ locale, namespace: "common" })
120121

121122
const commitHistoryCache: CommitHistory = {}
122123
const { contributors, lastEditLocaleTimestamp } =
@@ -158,7 +159,7 @@ export default async function Page({ params }: { params: Promise<Params> }) {
158159
}))
159160

160161
const heroContent: HubHeroProps = {
161-
title: t("common:learn-hub"),
162+
title: tCommon("learn-hub"),
162163
header: t("hero-header"),
163164
description: t("hero-subtitle"),
164165
heroImg: heroImage,
@@ -428,17 +429,17 @@ export default async function Page({ params }: { params: Promise<Params> }) {
428429
<UnorderedList className="mb-0">
429430
<ListItem>
430431
<InlineLink href="/decentralized-identity/">
431-
{t("common:decentralized-identity")}
432+
{tCommon("decentralized-identity")}
432433
</InlineLink>
433434
</ListItem>
434435
<ListItem>
435436
<InlineLink href="/social-networks/">
436-
{t("common:decentralized-social-networks")}
437+
{tCommon("decentralized-social-networks")}
437438
</InlineLink>
438439
</ListItem>
439440
<ListItem>
440441
<InlineLink href="/desci/">
441-
{t("common:decentralized-science")}
442+
{tCommon("decentralized-science")}
442443
</InlineLink>
443444
</ListItem>
444445
<ListItem>

0 commit comments

Comments
 (0)