From c807939eff3a8492bae9e38aa77a9b5ac3a429a9 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 19 九月 2024 10:55:31 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/components/ImportModal.jsx | 7 ++++--- zy-acs-flow/src/i18n/en.js | 1 + zy-acs-flow/src/i18n/zh.js | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/i18n/en.js b/zy-acs-flow/src/i18n/en.js index c50e9b2..4c789ce 100644 --- a/zy-acs-flow/src/i18n/en.js +++ b/zy-acs-flow/src/i18n/en.js @@ -55,6 +55,7 @@ tips: 'The import is running, please do not close this tab.', err: 'Failed to import this file, please make sure your provided a valid CSV file.', download: 'Download Import Template', + result: 'Contacts import complete. Imported %{success} contacts, with %{error} errors', } }, }, diff --git a/zy-acs-flow/src/i18n/zh.js b/zy-acs-flow/src/i18n/zh.js index 6b2eb44..4976480 100644 --- a/zy-acs-flow/src/i18n/zh.js +++ b/zy-acs-flow/src/i18n/zh.js @@ -55,6 +55,7 @@ tips: '姝e湪瀵煎叆涓紝璇蜂笉瑕佸叧闂绐楀彛', err: '鏃犳硶瀵煎叆姝ゆ枃浠讹紝璇风‘淇濇偍鎻愪緵浜嗘湁鏁堢殑 CSV 鏂囦欢', download: '涓嬭浇瀵煎叆妯℃澘', + result: '瀵煎叆瀹屾垚銆傚凡瀵煎叆 %{success} 鎴愬姛, 鍜� %{error} 澶辫触', } }, }, diff --git a/zy-acs-flow/src/page/components/ImportModal.jsx b/zy-acs-flow/src/page/components/ImportModal.jsx index 2344d49..7619aa9 100644 --- a/zy-acs-flow/src/page/components/ImportModal.jsx +++ b/zy-acs-flow/src/page/components/ImportModal.jsx @@ -132,9 +132,10 @@ {importer.state === 'complete' && ( <Alert severity="success"> - Contacts import complete. Imported{' '} - {importer.importCount} contacts, with{' '} - {importer.errorCount} errors + {translate('common.action.import.result', { + success: importer.importCount, + error: importer.errorCount + })} </Alert> )} -- Gitblit v1.9.1