From 3df33a7cd23d6a6b0aaa3ff83f5961ed8249b196 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 26 Oct 2025 02:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jingrow/frontend/src/locales/zh-CN.json | 1 + apps/jingrow/frontend/src/views/dev/AppInstaller.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/jingrow/frontend/src/locales/zh-CN.json b/apps/jingrow/frontend/src/locales/zh-CN.json index 4584292..b7cc7d3 100644 --- a/apps/jingrow/frontend/src/locales/zh-CN.json +++ b/apps/jingrow/frontend/src/locales/zh-CN.json @@ -818,6 +818,7 @@ "Are you sure you want to uninstall": "您确定要卸载", "Are you sure you want to uninstall '{0}'? This action cannot be undone.": "您确定要卸载 '{0}' 吗?此操作无法撤销。", "App '{0}' uninstalled successfully": "应用 '{0}' 卸载成功", + "App '{0}' installed successfully": "应用 '{0}' 安装成功", "System App": "系统应用", "cannot be uninstalled": "不允许卸载", "Version": "版本", diff --git a/apps/jingrow/frontend/src/views/dev/AppInstaller.vue b/apps/jingrow/frontend/src/views/dev/AppInstaller.vue index f18b9ae..fc5e23e 100644 --- a/apps/jingrow/frontend/src/views/dev/AppInstaller.vue +++ b/apps/jingrow/frontend/src/views/dev/AppInstaller.vue @@ -249,7 +249,7 @@ const startUpload = async () => { // 清空文件列表 clearFiles() - message.success(t(`App '${response.data.app_name}' installed successfully`)) + message.success(t('App \'{0}\' installed successfully').replace('{0}', response.data.app_name)) } else { throw new Error(response.data.error || t('Installation failed')) } @@ -305,7 +305,7 @@ const installLocalApp = async (appName: string) => { }) if (response.data.success) { - message.success(t(`App '${appName}' installed successfully`)) + message.success(t('App \'{0}\' installed successfully').replace('{0}', appName)) // 重新加载本地App列表 await loadLocalApps() } else {