From 1ffba09c65ffb613bf50841e784bb54068bb3e3c Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Fri, 5 Sep 2025 12:00:10 +0800 Subject: [PATCH] update i18n --- src/components/DoSave/DoSaveWrapper.tsx | 28 +++++++++++++++++++++++++ src/i18n/zh/dashboard.json | 2 +- src/i18n/zh/purchaseOrder.json | 4 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/components/DoSave/DoSaveWrapper.tsx b/src/components/DoSave/DoSaveWrapper.tsx index e69de29..f7652a5 100644 --- a/src/components/DoSave/DoSaveWrapper.tsx +++ b/src/components/DoSave/DoSaveWrapper.tsx @@ -0,0 +1,28 @@ +import React from "react"; +import GeneralLoading from "../General/GeneralLoading" +import { fetchDoList } from "@/app/api/do"; + +interface SubComponents { + Loading: typeof GeneralLoading; +} + +interface Props { + id: string; +} + +const DoSaveWrapper: React.FC & SubComponents = async ({ + id +}) => { + + const [ + dos + ] = await Promise.all([ + fetchDoList() + ]); + // return + return <> +} + +DoSaveWrapper.Loading = GeneralLoading; + +export default DoSaveWrapper; \ No newline at end of file diff --git a/src/i18n/zh/dashboard.json b/src/i18n/zh/dashboard.json index 6ff0ad2..3e8835b 100644 --- a/src/i18n/zh/dashboard.json +++ b/src/i18n/zh/dashboard.json @@ -47,7 +47,7 @@ "Po Code": "採購訂單編號", "My Escalation List": "我的上報列表", "Escalation List": "上報列表", - "Purchase UoM": "計量單位", + "Purchase UoM": "採購單位", "QC Completed Count": "品檢完成數量", "QC Fail-Total Count": "品檢不合格/總數", "escalationStatus": "上報狀態", diff --git a/src/i18n/zh/purchaseOrder.json b/src/i18n/zh/purchaseOrder.json index e12c370..b50c720 100644 --- a/src/i18n/zh/purchaseOrder.json +++ b/src/i18n/zh/purchaseOrder.json @@ -35,9 +35,9 @@ "Item Qty": "貨品數量", "Item": "貨品", "Item Accepted Qty": "貨品已收貨數量", - "Item Purchase UoM": "貨品計量單位", + "Item Purchase UoM": "貨品採購單位", "qty": "訂單數量", - "uom": "計量單位", + "uom": "採購單位", "Stock UoM": "庫存單位", "Stock In Qty": "換算庫存數量", "total weight": "總重量",