diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-05-09 06:46:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 06:46:29 +0300 |
| commit | 1ddfe4aba3ff16df9e5006051407d2488ffe4a59 (patch) | |
| tree | 28eb61df88797217558fd168e3a3bac7b49dc7b6 /web/controller/xray_setting.go | |
| parent | fe3b1c9b52f584b0f045907585b206344fed55db (diff) | |
chore: toasts translation refactoring
Diffstat (limited to 'web/controller/xray_setting.go')
| -rw-r--r-- | web/controller/xray_setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/controller/xray_setting.go b/web/controller/xray_setting.go index 3391ad3b..5b2d1036 100644 --- a/web/controller/xray_setting.go +++ b/web/controller/xray_setting.go @@ -93,7 +93,7 @@ func (a *XraySettingController) warp(c *gin.Context) { func (a *XraySettingController) getOutboundsTraffic(c *gin.Context) { outboundsTraffic, err := a.OutboundService.GetOutboundsTraffic() if err != nil { - jsonMsg(c, "Error getting traffics", err) + jsonMsg(c, I18nWeb(c, "pages.settings.toasts.getOutboundTrafficError"), err) return } jsonObj(c, outboundsTraffic, nil) @@ -103,7 +103,7 @@ func (a *XraySettingController) resetOutboundsTraffic(c *gin.Context) { tag := c.PostForm("tag") err := a.OutboundService.ResetOutboundTraffic(tag) if err != nil { - jsonMsg(c, "Error in reset outbound traffics", err) + jsonMsg(c, I18nWeb(c, "pages.settings.toasts.resetOutboundTrafficError"), err) return } jsonObj(c, "", nil) |
