update to use WebI18n func

This commit is contained in:
Hamidreza Ghavami
2023-05-20 19:51:45 +04:30
parent 2bd706aa92
commit 9b7cddbec7
5 changed files with 41 additions and 41 deletions

View File

@@ -81,7 +81,7 @@ func (a *ServerController) getXrayVersion(c *gin.Context) {
versions, err := a.serverService.GetXrayVersions()
if err != nil {
jsonMsg(c, I18n(c, "getVersion"), err)
jsonMsg(c, WebI18n(c, "getVersion"), err)
return
}
@@ -94,7 +94,7 @@ func (a *ServerController) getXrayVersion(c *gin.Context) {
func (a *ServerController) installXray(c *gin.Context) {
version := c.Param("version")
err := a.serverService.UpdateXray(version)
jsonMsg(c, I18n(c, "install")+" xray", err)
jsonMsg(c, WebI18n(c, "install")+" xray", err)
}
func (a *ServerController) stopXrayService(c *gin.Context) {