Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/[locale]/wallets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ import heroImg from "@/public/images/wallets/wallet-hero.png"
const Page = async (props: { params: Promise<PageParams> }) => {
const params = await props.params
const { locale } = params
const t = await getTranslations("page-wallets")

// Set locale before next-intl APIs so on-demand renders stay static
setRequestLocale(locale)

const t = await getTranslations("page-wallets")

// Get i18n messages
const allMessages = await getMessages({ locale })
const requiredNamespaces = getRequiredNamespacesForPage("/wallets")
Expand Down Expand Up @@ -386,6 +388,9 @@ export async function generateMetadata(props: {
const params = await props.params
const { locale } = params

// Set locale before next-intl APIs so on-demand renders stay static
setRequestLocale(locale)

const t = await getTranslations("page-wallets")

return await getMetadata({
Expand Down
Loading