app/error.tsx | 9 ++-- app/layout.tsx | 5 ++ app/product/[handle]/page.tsx | 4 +- app/search/layout.tsx | 4 +- components/cart/add-to-cart.tsx | 8 ++-- components/cart/delete-item-button.tsx | 4 +- components/cart/modal.tsx | 8 ++-- components/layout/footer.tsx | 10 ++-- components/layout/navbar/mobile-menu.tsx | 6 ++- components/layout/navbar/search.tsx | 7 ++- components/layout/search/collections.tsx | 4 +- i18n/request.ts | 11 +++++ messages/en.json | 42 ++++++++++++++++ messages/ja.json | 42 ++++++++++++++++ messages/translation-todo.json | 82 ++++++++++++++++++++++++++++++++ next.config.ts | 7 ++- package.json | 3 +- pnpm-workspace.yaml | 2 + 18 files changed, 233 insertions(+), 25 deletions(-) diff --git a/app/error.tsx b/app/error.tsx index 817ef75..b2b9d09 100644 --- a/app/error.tsx +++ b/app/error.tsx @@ -1,18 +1,19 @@ "use client"; +import { useTranslations } from 'next-intl'; export default function Error({ reset }: { reset: () => void }) { + const t = useTranslations(); return (
- There was an issue with our storefront. This could be a temporary issue, - please try your action again. + {t('error.there_was_an_issue_with_our_storefront_t')}