From 5f570a85d359f1d1adf68c8391d414215e7ec17b Mon Sep 17 00:00:00 2001 From: Sanchit Agarwal Date: Tue, 13 Jun 2023 20:42:54 +0530 Subject: [PATCH] fix: pass language to calcSelectionInfo --- packages/react/src/components/Workbook/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/Workbook/index.tsx b/packages/react/src/components/Workbook/index.tsx index 6f70ba2..d9d5a97 100644 --- a/packages/react/src/components/Workbook/index.tsx +++ b/packages/react/src/components/Workbook/index.tsx @@ -100,8 +100,9 @@ const Workbook = React.forwardRef( // 计算选区的信息 useEffect(() => { const selection = context.luckysheet_select_save; + const { lang } = props; if (selection) { - const re = calcSelectionInfo(context); + const re = calcSelectionInfo(context, lang); setCalInfo(re); } // eslint-disable-next-line react-hooks/exhaustive-deps