+ Add translation support for backend by passing selected language in request header.

+ Add a new translation middleware.
+ Translated all /api/v1/system/* modules.
+ Translated /api/v1/autocode/auto_code_example.go
+ Increasing server timeout from 20 sec to 30 sec.
+ Fix Chinese translation for confirmation button.
+ Add selected language option to user store.
This commit is contained in:
Mohamed Hassan
2022-02-14 14:39:10 +02:00
parent 59843f1997
commit 2bd337fa38
36 changed files with 599 additions and 273 deletions
+1
View File
@@ -17,6 +17,7 @@ const (
SUCCESS = 0
)
// modified by mohamed hassan to support multilanguage
func Result(code int, data interface{}, msg string, c *gin.Context) {
// 开始时间
c.JSON(http.StatusOK, Response{