mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
bump next-intl to RSC support
This commit is contained in:
@@ -4,6 +4,7 @@ import { SupportedLocale } from 'components/layout/navbar/language-control';
|
||||
import Navbar from 'components/layout/navbar';
|
||||
import { getCart, getProduct } from 'lib/shopify';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import { unstable_setRequestLocale } from 'next-intl/server';
|
||||
import { cookies } from 'next/headers';
|
||||
import { Suspense } from 'react';
|
||||
import TermsOfUse from './terms-of-use';
|
||||
@@ -23,6 +24,10 @@ export default async function TermsPage({
|
||||
}: {
|
||||
params: { locale?: SupportedLocale };
|
||||
}) {
|
||||
if (!!locale) {
|
||||
unstable_setRequestLocale(locale);
|
||||
}
|
||||
|
||||
const cartId = cookies().get('cartId')?.value;
|
||||
let cart;
|
||||
|
||||
|
Reference in New Issue
Block a user