diff --git a/web/app/components/app-sidebar/app-info.tsx b/web/app/components/app-sidebar/app-info.tsx
index c625c99dbc..3603ded71c 100644
--- a/web/app/components/app-sidebar/app-info.tsx
+++ b/web/app/components/app-sidebar/app-info.tsx
@@ -285,7 +285,7 @@ const AppInfo = ({ expand, onlyShowDetail = false, openState = false, onDetailEx
...(appDetail.mode === AppModeEnum.ADVANCED_CHAT || appDetail.mode === AppModeEnum.WORKFLOW)
? [{
id: 'import',
- title: t('common.importDSL', { ns: 'workflow' }),
+ title: t('importApp', { ns: 'app' }),
icon: ,
onClick: () => {
setOpen(false)
diff --git a/web/app/components/app/create-from-dsl-modal/index.tsx b/web/app/components/app/create-from-dsl-modal/index.tsx
index 6694985f2b..89bffd14d3 100644
--- a/web/app/components/app/create-from-dsl-modal/index.tsx
+++ b/web/app/components/app/create-from-dsl-modal/index.tsx
@@ -272,7 +272,7 @@ const CreateFromDSLModal = ({ show, onSuccess, onClose, activeTab = CreateFromDS
>
- {t('importFromDSL', { ns: 'app' })}
+ {t('importApp', { ns: 'app' })}
- {t('importDSL', { ns: 'app' })}
+ {t('importApp', { ns: 'app' })}
diff --git a/web/app/components/workflow/panel-contextmenu.tsx b/web/app/components/workflow/panel-contextmenu.tsx
index 8453bfa375..00c540e39b 100644
--- a/web/app/components/workflow/panel-contextmenu.tsx
+++ b/web/app/components/workflow/panel-contextmenu.tsx
@@ -34,6 +34,7 @@ const PanelContextmenu = () => {
const { handleAddNote } = useOperator()
const { isCommentModeAvailable } = useWorkflowMoveMode()
const { exportCheck } = useDSL()
+ const pipelineId = useStore(s => s.pipelineId)
useEffect(() => {
if (panelMenu)
@@ -143,7 +144,7 @@ const PanelContextmenu = () => {
className="flex h-8 cursor-pointer items-center justify-between rounded-lg px-3 text-sm text-text-secondary hover:bg-state-base-hover"
onClick={() => setShowImportDSLModal(true)}
>
- {t('common.importDSL', { ns: 'workflow' })}
+ {!pipelineId ? t('importApp', { ns: 'app' }) : t('common.importDSL', { ns: 'workflow' })}
diff --git a/web/app/components/workflow/update-dsl-modal.tsx b/web/app/components/workflow/update-dsl-modal.tsx
index 97b50ffafe..feed6e79ec 100644
--- a/web/app/components/workflow/update-dsl-modal.tsx
+++ b/web/app/components/workflow/update-dsl-modal.tsx
@@ -266,7 +266,7 @@ const UpdateDSLModal = ({
onClose={onCancel}
>
-
{t('common.importDSL', { ns: 'workflow' })}
+
{t('importApp', { ns: 'app' })}
diff --git a/web/i18n/en-US/app.json b/web/i18n/en-US/app.json
index ffd2abd5a0..8f70e1102a 100644
--- a/web/i18n/en-US/app.json
+++ b/web/i18n/en-US/app.json
@@ -115,8 +115,9 @@
"iconPicker.emoji": "Emoji",
"iconPicker.image": "Image",
"iconPicker.ok": "OK",
+ "importApp": "Import App",
"importBundleFailed": "Import bundle failed.",
- "importDSL": "Import App",
+ "importDSL": "Import DSL file",
"importFromDSL": "Import App",
"importFromDSLFile": "Local File",
"importFromDSLModal.learnMore": "Learn about DSL and ZIP formats",
diff --git a/web/i18n/zh-Hans/app.json b/web/i18n/zh-Hans/app.json
index fda607d9e4..16eecda9a1 100644
--- a/web/i18n/zh-Hans/app.json
+++ b/web/i18n/zh-Hans/app.json
@@ -115,8 +115,9 @@
"iconPicker.emoji": "表情符号",
"iconPicker.image": "图片",
"iconPicker.ok": "确认",
+ "importApp": "导入 App",
"importBundleFailed": "导入 Bundle 失败",
- "importDSL": "导入 App",
+ "importDSL": "导入 DSL 文件",
"importFromDSL": "导入 DSL",
"importFromDSLFile": "从 DSL 文件",
"importFromDSLModal.learnMore": "了解 DSL 与 ZIP 格式",