diff --git a/app/[locale]/wallets/page.tsx b/app/[locale]/wallets/page.tsx index f6515d2d12b..6d6cd8ae2b0 100644 --- a/app/[locale]/wallets/page.tsx +++ b/app/[locale]/wallets/page.tsx @@ -41,10 +41,12 @@ import heroImg from "@/public/images/wallets/wallet-hero.png" const Page = async (props: { params: Promise }) => { 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") @@ -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({