Skip to content

Commit 93c2040

Browse files
committed
Update locale success plugin value
1 parent f1b14bb commit 93c2040

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

backend/app/admin/api/v1/sys/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def install_plugin(
4646
) -> ResponseModel:
4747
plugin = await plugin_service.install(type=type, file=file, repo_url=repo_url)
4848
return response_base.success(
49-
res=CustomResponse(code=200, msg=t('success.plugin_install_success', plugin_name=plugin))
49+
res=CustomResponse(code=200, msg=t('success.plugin.install_success', plugin=plugin))
5050
)
5151

5252

@@ -62,7 +62,7 @@ async def install_plugin(
6262
async def uninstall_plugin(plugin: Annotated[str, Path(description='插件名称')]) -> ResponseModel:
6363
await plugin_service.uninstall(plugin=plugin)
6464
return response_base.success(
65-
res=CustomResponse(code=200, msg=t('success.plugin_uninstall_success', plugin_name=plugin))
65+
res=CustomResponse(code=200, msg=t('success.plugin.uninstall_success', plugin=plugin))
6666
)
6767

6868

backend/locale/en-US.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@
252252
"success": "Login success"
253253
},
254254
"plugin": {
255-
"install_success": "Plugin {plugin_name} installed successfully, please refer to the plugin documentation (README.md) for related configuration and restart the service",
256-
"uninstall_success": "Plugin {plugin_name} uninstalled successfully, please remove related configuration according to the plugin documentation (README.md) and restart the service"
255+
"install_success": "Plugin {plugin} installed successfully, please refer to the plugin documentation (README.md) for related configuration and restart the service",
256+
"uninstall_success": "Plugin {plugin} uninstalled successfully, please remove related configuration according to the plugin documentation (README.md) and restart the service"
257257
}
258258
}
259-
}
259+
}

backend/locale/zh-CN.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,5 @@ success:
226226
oauth2_success: 登录成功(OAuth2)
227227
success: 登录成功
228228
plugin:
229-
install_success: '插件 {plugin_name} 安装成功,请根据插件说明(README.md)进行相关配置并重启服务'
230-
uninstall_success: '插件 {plugin_name} 卸载成功,请根据插件说明(README.md)移除相关配置并重启服务'
229+
install_success: '插件 {plugin} 安装成功,请根据插件说明(README.md)进行相关配置并重启服务'
230+
uninstall_success: '插件 {plugin} 卸载成功,请根据插件说明(README.md)移除相关配置并重启服务'

0 commit comments

Comments
 (0)