mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-23 05:00:57 +00:00
+ 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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user