-
{t('cart.quantity-label')}
+
{t('cart.quantity-label')}
setCurrentQuantity(Number(e.target.value))}
diff --git a/components/cart/index.tsx b/components/cart/index.tsx
index f82c7a67f..d5e9103ef 100644
--- a/components/cart/index.tsx
+++ b/components/cart/index.tsx
@@ -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
;
diff --git a/components/layout/navbar/language-control.tsx b/components/layout/navbar/language-control.tsx
index 13457f763..993fbf32a 100644
--- a/components/layout/navbar/language-control.tsx
+++ b/components/layout/navbar/language-control.tsx
@@ -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('/') || '/';
};
diff --git a/middleware.ts b/middleware.ts
index b0a3d6402..f7520bddd 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -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 = {