Skip to content

Commit 4dae8d4

Browse files
committed
refactor: namespace syntax
1 parent c6f88af commit 4dae8d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/[locale]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ export async function generateMetadata({
135135
}) {
136136
const { locale } = await params
137137

138-
const t = await getTranslations({ locale })
138+
const t = await getTranslations({ locale, namespace: "page-index" })
139139

140140
return await getMetadata({
141141
locale,
142142
slug: [""],
143-
title: t("page-index.page-index-meta-title"),
144-
description: t("page-index.page-index-meta-description"),
143+
title: t("page-index-meta-title"),
144+
description: t("page-index-meta-description"),
145145
})
146146
}
147147

0 commit comments

Comments
 (0)