diff --git a/web/app/components/plugins/install-plugin/install-bundle/index.tsx b/web/app/components/plugins/install-plugin/install-bundle/index.tsx index da5a9fbd6a..035de8b781 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/index.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/index.tsx @@ -34,9 +34,7 @@ const InstallBundle: FC = ({ if (step === InstallStep.uploadFailed) return t(`${i18nPrefix}.uploadFailed`) if (step === InstallStep.installed) - return t(`${i18nPrefix}.installedSuccessfully`) - if (step === InstallStep.installFailed) - return t(`${i18nPrefix}.installFailed`) + return t(`${i18nPrefix}.installComplete`) return t(`${i18nPrefix}.installPlugin`) }, [step, t]) diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx index 611a1ad5a1..c126a38a1d 100644 --- a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx @@ -34,13 +34,15 @@ const InstallFromLocalPackage: React.FC = ({ const getTitle = useCallback(() => { if (step === InstallStep.uploadFailed) return t(`${i18nPrefix}.uploadFailed`) + if (isBundle && step === InstallStep.installed) + return t(`${i18nPrefix}.installComplete`) if (step === InstallStep.installed) return t(`${i18nPrefix}.installedSuccessfully`) if (step === InstallStep.installFailed) return t(`${i18nPrefix}.installFailed`) return t(`${i18nPrefix}.installPlugin`) - }, [step, t]) + }, [isBundle, step, t]) const { getIconUrl } = useGetIcon() diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts index bcbb1648f4..88c21c0dd3 100644 --- a/web/i18n/en-US/plugin.ts +++ b/web/i18n/en-US/plugin.ts @@ -94,6 +94,7 @@ const translation = { }, installModal: { installPlugin: 'Install Plugin', + installComplete: 'Installation complete', installedSuccessfully: 'Installation successful', installedSuccessfullyDesc: 'The plugin has been installed successfully.', uploadFailed: 'Upload failed', diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts index b293f99f8f..94e1324bed 100644 --- a/web/i18n/zh-Hans/plugin.ts +++ b/web/i18n/zh-Hans/plugin.ts @@ -94,6 +94,7 @@ const translation = { }, installModal: { installPlugin: '安装插件', + installComplete: '安装完成', installedSuccessfully: '安装成功', installedSuccessfullyDesc: '插件已成功安装。', uploadFailed: '上传失败',