From f512408eabd03e34d9067aebfd820f71d5c8a6cd Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Thu, 31 Jul 2025 18:30:37 +0800 Subject: [PATCH] i18n --- src/app/(main)/settings/qcItem/page.tsx | 4 +++- src/components/QcItemSearch/QcItemSearch.tsx | 2 +- src/i18n/zh/qcItem.json | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/i18n/zh/qcItem.json diff --git a/src/app/(main)/settings/qcItem/page.tsx b/src/app/(main)/settings/qcItem/page.tsx index 1afce1a..f1b4e71 100644 --- a/src/app/(main)/settings/qcItem/page.tsx +++ b/src/app/(main)/settings/qcItem/page.tsx @@ -37,7 +37,9 @@ const qcItem: React.FC = async () => { }> - + + + ); diff --git a/src/components/QcItemSearch/QcItemSearch.tsx b/src/components/QcItemSearch/QcItemSearch.tsx index 1d70790..3256b6c 100644 --- a/src/components/QcItemSearch/QcItemSearch.tsx +++ b/src/components/QcItemSearch/QcItemSearch.tsx @@ -26,7 +26,7 @@ type SearchQuery = Partial>; type SearchParamNames = keyof SearchQuery; const QcItemSearch: React.FC = ({ qcItems }) => { - const { t } = useTranslation("qcItems"); + const { t } = useTranslation("qcItem"); const router = useRouter(); const pathname = usePathname(); diff --git a/src/i18n/zh/qcItem.json b/src/i18n/zh/qcItem.json new file mode 100644 index 0000000..4ffc45c --- /dev/null +++ b/src/i18n/zh/qcItem.json @@ -0,0 +1,8 @@ +{ + "Name": "名稱", + "Code": "代碼", + "Details": "詳細資料", + "Delete": "刪除", + "Qc Item": "QC 項目", + "Create Qc Item": "新增 QC 項目" +} \ No newline at end of file