revert for japan-first settings

This commit is contained in:
Sol Irvine 2023-10-08 21:36:08 +09:00
parent 1d83ea4042
commit bc3db70bd9
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ export default async function Cart({ locale }: { locale?: SupportedLocale }) {
const promotedItem: Product | undefined = await getProduct({
handle: 'gift-bag-and-postcard-set',
language: locale?.toUpperCase() || 'EN'
language: locale?.toUpperCase() || 'JA'
});
return <CartModal cart={cart} promotedItem={promotedItem} />;

View File

@ -19,7 +19,7 @@ export const LanguageControl = ({ lang }: { lang?: SupportedLocale }) => {
const basePathName = () => {
const unjoined = pathName.split('/');
const unjoinedWithoutLocale = removeItem(unjoined, 'ja');
const unjoinedWithoutLocale = removeItem(unjoined, 'en');
return unjoinedWithoutLocale.join('/') || '/';
};

View File

@ -2,10 +2,10 @@ import createMiddleware from 'next-intl/middleware';
export default createMiddleware({
// A list of all locales that are supported
locales: ['en', 'ja'],
locales: ['ja', 'en'],
// If this locale is matched, pathnames work without a prefix (e.g. `/about`)
defaultLocale: 'en'
defaultLocale: 'ja'
});
export const config = {