diff --git a/client/shared/i18n/langs/en-US/translation.json b/client/shared/i18n/langs/en-US/translation.json index ebaaaa52..d513cbb0 100644 --- a/client/shared/i18n/langs/en-US/translation.json +++ b/client/shared/i18n/langs/en-US/translation.json @@ -9,7 +9,6 @@ "k13ae6a93": "Copy", "k13bea6d2": "User not found", "k1596c75c": "Only allow specified users to speak", - "k162e37f1": "Plugin is successfully uninstalled, and it needs to be restarted to take effect", "k1704ea49": "Install", "k17777797": "The panel is provided by the plugin", "k18580d81": "Create a link and send it to external friends", @@ -117,6 +116,7 @@ "k68283d04": "Application sent", "k685a1e78": "Copied to clipboard", "k6b5e7ffe": "The current panel has been opened in a separate window", + "k6b82e672": "The plugin is installed successfully, and it will take effect after refreshing the page", "k6c29eece": "Allows members to send message in text channels", "k6c75d61f": "Modify group avatar success", "k6cc401b0": "No role groups are currently selected", @@ -175,7 +175,6 @@ "k9fc409ec": "Install Succeed", "ka01a00eb": "System language", "ka0451c97": "Cancel", - "ka14986f0": "Plugin install successed, need to be restarted to take effect", "ka29e9508": "Send Image", "ka2c48894": "Customize your group", "ka2ed2b61": "Are you sure you want to do this?", @@ -264,6 +263,7 @@ "kdc3e5cf6": "No friend requests pending", "kdc4b4f92": "Public", "kdc8de4ff": "Auto", + "kdce55773": "The plugin is uninstalled successfully, and it will take effect after refreshing the page", "kdd4c838c": "Jump to Group", "kdd6c18f8": "Service exception", "kdef84ee6": "Plugin", diff --git a/client/shared/i18n/langs/zh-CN/translation.json b/client/shared/i18n/langs/zh-CN/translation.json index 11dcee01..b9726b5b 100644 --- a/client/shared/i18n/langs/zh-CN/translation.json +++ b/client/shared/i18n/langs/zh-CN/translation.json @@ -9,7 +9,6 @@ "k13ae6a93": "复制", "k13bea6d2": "没有找到用户", "k1596c75c": "仅允许指定用户发言", - "k162e37f1": "插件卸载成功, 需要重启后生效", "k1704ea49": "安装", "k17777797": "该面板由插件提供", "k18580d81": "创建链接并发送给外部好友", @@ -117,6 +116,7 @@ "k68283d04": "已发送申请", "k685a1e78": "已复制到剪切板", "k6b5e7ffe": "当前面板已在独立窗口打开", + "k6b82e672": "插件安装成功, 刷新页面后生效", "k6c29eece": "允许成员在文字频道发送消息", "k6c75d61f": "修改群组头像成功", "k6cc401b0": "当前没有选择任何角色组", @@ -175,7 +175,6 @@ "k9fc409ec": "安装成功", "ka01a00eb": "系统语言", "ka0451c97": "取消", - "ka14986f0": "插件安装成功, 需要重启后生效", "ka29e9508": "发送图片", "ka2c48894": "自定义你的群组", "ka2ed2b61": "确认要进行该操作么?", @@ -264,6 +263,7 @@ "kdc3e5cf6": "暂无待处理的好友请求", "kdc4b4f92": "公共", "kdc8de4ff": "自动", + "kdce55773": "插件卸载成功, 刷新页面后生效", "kdd4c838c": "跳转到群组", "kdd6c18f8": "服务异常", "kdef84ee6": "插件", diff --git a/client/web/src/plugin/PluginStore/Item.tsx b/client/web/src/plugin/PluginStore/Item.tsx index 3ebd4fd2..29c6ced0 100644 --- a/client/web/src/plugin/PluginStore/Item.tsx +++ b/client/web/src/plugin/PluginStore/Item.tsx @@ -28,7 +28,7 @@ export const PluginStoreItem: React.FC<{ const [{ loading }, handleInstallPlugin] = useAsyncRequest(async () => { await pluginManager.installPlugin(manifest); if (manifest.requireRestart === true) { - showToasts(t('插件安装成功, 需要重启后生效'), 'success'); + showToasts(t('插件安装成功, 刷新页面后生效'), 'success'); } else { showToasts(t('插件安装成功'), 'success'); } @@ -40,7 +40,7 @@ export const PluginStoreItem: React.FC<{ message: t('是否要卸载插件'), onConfirm: async () => { await pluginManager.uninstallPlugin(manifest.name); - showToasts(t('插件卸载成功, 需要重启后生效'), 'success'); + showToasts(t('插件卸载成功, 刷新页面后生效'), 'success'); }, }); }, [manifest]);