From f7a8c882a090a921a3d0a956bed46f164f9d5680 Mon Sep 17 00:00:00 2001 From: "kelvin.yau" Date: Wed, 18 Mar 2026 23:23:20 +0800 Subject: [PATCH] no message --- .../InventorySearch/InventorySearch.tsx | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/components/InventorySearch/InventorySearch.tsx b/src/components/InventorySearch/InventorySearch.tsx index 3fb389b..bf04fae 100644 --- a/src/components/InventorySearch/InventorySearch.tsx +++ b/src/components/InventorySearch/InventorySearch.tsx @@ -57,7 +57,32 @@ type SearchQuery = Partial< type SearchParamNames = keyof SearchQuery; const InventorySearch: React.FC = ({ inventories, printerCombo }) => { - const { t } = useTranslation(['inventory', 'common', 'item']); + const { t, i18n } = useTranslation(['inventory', 'common', 'item']); + + // #region agent log + useEffect(() => { + fetch('http://127.0.0.1:7242/ingest/8c332e19-29c4-4171-9317-8619340856a2', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'X-Debug-Session-Id': 'aca475', + }, + body: JSON.stringify({ + sessionId: 'aca475', + runId: 'run1', + hypothesisId: 'H1', + location: 'src/components/InventorySearch/InventorySearch.tsx:63', + message: 'Check current stock translation lookup', + data: { + language: i18n.language, + translatedCurrentStock: t('Current Stock'), + translatedHardcodedLabel: t('現有庫存'), + }, + timestamp: Date.now(), + }), + }).catch(() => {}); + }, [i18n.language, t]); + // #endregion // Inventory const [filteredInventories, setFilteredInventories] = useState([]); @@ -554,7 +579,7 @@ const InventorySearch: React.FC = ({ inventories, printerCombo }) => { {t('Code')} {t('Name')} {t('UoM')} - {t('現有庫存')} + {t('Current Stock')}